PHP function
sort_objects
Description
Sort an array of objects by one or more properties.
Parameters2
| Coding name |
rows
|
| Position |
1
|
| Type |
Array(Primitive type)
|
| Coding name |
property
|
| Description |
Name of the property to sort by. Prepend a minus to revert sort direction.
|
| Position |
2
|
| Type |
String(Primitive type)
|
| Comments |
The function accepts any number of property names.
|
| Examples |
|
Examples
[%sort_objects($rows, "date", "-price")%]
|
We are sorry
This page cannot be displayed in your browser. Use Firefox, Opera, Safari, or Chrome instead.