From wiki.swiftlytilting.com
WinBinder Manual/wb sort
Sorts the contents of a control
Syntax
bool wb_sort (int control [, bool ascending [, int subitem]])
- control may be a WinBinder control, a control item, a ListView column or a sub-item.
- If ascending is TRUE (the default), the control or column is ordered starting with the lowest value or string.
- In a ListView, the column is indexed by subitem. The index of the first column is zero.
- The sorting criteria between two given items, item1 and item2, are as follows:
| Item 1 | Item 2 | Result
|
| String or number | String | Alphabetical order according to system locale
|
| String or number | Empty | The non-empty item is always greater than the empty one
|
| Number | Number | Numeric comparison
|
Returns
Returns TRUE on success or FALSE if an error occurs.
See also