DÉMARRE LE TRI AUTOMATIQUE DE L'OBJET SYSTÈME NUMÉRO N
ACTION
La commande SORT_ON N trie par ordre ascendant les articles de l'objet système désigné par son numéro N et démarre un tri automatique : à chaque action sur cet objet système (ajout ou retrait d'un article), l'objet système est trié.
Remarque: le tri automatique est arrêté par la commande SORT_OFF.
SYNTAXE :
SORT_ON N
UTILISATION ERREUR EXEMPLE
rem créer un LIST
list 1
rem lui ajouter 3 articles
item_add 1,"BBB"
item_add 1,"CCC"
item_add 1,"AAA"
rem démarrer le tri automatique
sort_on 1
rem ajouter un article
item_add 1,"ABC"
rem l'ordre est : AAA,ABC,BBB,CCC
rem arrêter le tri automatique
sort_off 1
rem ajouter un article
item_add 1,"ABD"
rem l'ordre est : AAA,ABC,BBB,CCC,ABD
SORT_ON
SORT_ON N
EN RAPPORT
SORT
SORT_OFF