Xbasic
OBJECT.QUICK_SORT Function
Syntax
.Quick_Sort([L ascending])
Arguments
- ascending
Optional. Default = .T. (TRUE), .T. = Ascending sort, .F. = Descending sort.
Description
Does a quick sort of the records using the selected field.
The <OBJECT>.QUICK_SORT() method applies to:
- Browses (for <OBJECT> use either the <BROWSE> pointer or the name of the browse)
- Forms (for <OBJECT> use either the <FORM> pointer or the name of the form)
The <OBJECT>.QUICK_SORT() method performs the same action as the Quick Sort commands.
Example
This script is attached to a button. It gives focus to the Customer field, then sorts the data by this field.
customer.activate() customer.quick_sort()
Sorting in descending order:
customer.quick_sort(.f.)
Limitations
Desktop applications only.
See Also