LooperSort_55 (Function)
In French: ZoneRépétéeTri

 LooperSort_55 is kept for backward compatibility.In this version, use LooperSort.See the documentation for LooperSort available in WebDev 1.5.

 PurposeSorts a Looper control according to one or more attributes.SyntaxSyntax 1: Sorting a looper on several attributes = LooperSort_55() is a boolean that returns the result of the sort is a character string containing the name of the attributes to sort (up to 10 attributes). has the following format:[]+TAB+[]+TAB+... is the sort direction (optional), it can bet set to + (ascending sort) or - (descending sort) is the name of the attribute to sort Syntax 2: Sorting a looper = LooperSort([] [,]) is a boolean that returns the result of the sort is the name of the Looper control to sort is a boolean that is used to cancel (or not) the sort Details is True if the sort was performed, False otherwise (invalid parameters).Syntax 1: = LooperSort_55()The sort is performed on the attributes specified in . The first attribute used for the sort is the first one specified, and so on...In , if the sign + is displayed in front of the name of an attribute, the sort will be performed in the ascending order for this attribute.In , if the sign - is displayed in front of the name of an attribute, the sort will be performed in the descending order for this attribute.The sort is performed in ascending order by default.Syntax 2: = LooperSort_55([] [,])The sort is performed on the first 10 attributes of the Looper control, if they exist. The first attribute used for sort is the attribute found on the left side of the Looper control.If the sign + is displayed in front of the name of the Looper control, the sort will be performed in ascending order for the 10 attributes found in the Looper control.If the sign - is displayed in front of the name of the Looper control, the sort will be performed in descending order for the 10 attributes found in the Looper control.The sort is performed in ascending order by defaultIf is set to True (default value), the sort is performed.If is set to False, the sort is canceled.Therefore, set to False is used to cancel a sort that was previously requested.Once the sort is canceled ( is set to False), the order of the Looper control rows is not modified but the rows added by LooperAdd or LooperInsert will not be sorted.NotesWhen a Looper control is sorted (by LooperSort), the additions performed by LooperAdd or LooperInsert take the sort into account.The sort is not canceled by TLooperDelete , LooperDeleteAll , LooperSeek , LooperCount .Important: if an attribute is modified (by LooperModify and if this attribute is used as sort attribute for the looper, the sort on this attribute is canceled.
Minimum version required
• Version 9