Personal tools
From wiki.swiftlytilting.com
Jump to: navigation, search

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 1Item 2Result
String or numberStringAlphabetical order according to system locale
String or numberEmptyThe non-empty item is always greater than the empty one
NumberNumberNumeric comparison

Returns

Returns TRUE on success or FALSE if an error occurs.

See also

Winbinder Projects