STARTS THE AUTOMATIC SORT OF THE SYSTEM OBJECT NUMBER N
ACTION
The command SORT_ON N sorts in ascending order all the items of the system object designated by its number N and starts an automatic sort : at every action on The system object (add or delete an item), the system object is sorted.
Remark: the automatic sort is stopped by the command SORT_OFF.
SYNTAX:
SORT_OFF N
USE ERROR EXAMPLE
rem create a LIST
list 1
rem add 3 lines
item_add 1,"BBB"
item_add 1,"CCC"
item_add 1,"AAA"
rem start the automatic sort
sort_on 1
rem add one item
item_add 1,"ABC"
rem the order is : AAA,ABC,BBB,CCC
rem stop the automatic sort
sort_off 1
rem add one item
item_add 1,"ABD"
rem the order is : AAA,ABC,BBB,CCC,ABD
SORT_ON
SORT_ON N
SEE ALSO
SORT
SORT_OFF