Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides
New in version: 5.4   6.0   6.1   6.2   6.3   6.4   6.5   7.0   7.1   7.2    Statistic  

QuickList.Sort

Sorts the list.

Component: List
Version: 4.4
Mac OS X: Yes
Windows: Yes
Server: Yes
FileMaker Cloud: Yes

MBS( "QuickList.Sort"; ListRef { ; Flags } )

Parameters

Parameter Description Example value
ListRef The reference to the list returned from QuickList.New function. $List
Flags Optional
Optional, whether to sort case insensitive or descending.
Pass 1 to sort case insensitive or 0 to sort case sensitive.
Add 2 to sort descending.
Add 4 for sorting dates in DD.MM.YYYY style and 8 for sorting dates in MM.DD.YYYY style.
1

Result

Returns OK or error.

Description

Sorts the list.
Version 6.2 adds new modes for date sorting. Mode 4 for DD.MM.YYYY style and mode 8 for MM.DD.YYYY style.

Examples

Sort a list:

Let
([
l = MBS("QuickList.New"; "a¶e¶ä¶f¶1");
r = MBS("QuickList.Sort"; l);
list = MBS("QuickList.GetList"; l);
r = MBS("QuickList.Free"; l)
]; list )

Sort a list ascending case sensitive:

Let
([
l = MBS("QuickList.New"; "A¶e¶ä¶Ä¶9¶1");
r = MBS("QuickList.Sort"; l);
list = MBS("QuickList.GetList"; l);
r = MBS("QuickList.Free"; l)
]; list )

Sort a list descending case insensitive:

Let
([
l = MBS("QuickList.New"; "A¶e¶ä¶Ä¶9¶1");
r = MBS("QuickList.Sort"; l; 3);
list = MBS("QuickList.GetList"; l);
r = MBS("QuickList.Free"; l)
]; list )

See also


QuickList.SetValue   -   QuickList.SortWith

Feedback: Report problem or ask question.




Links
MBS Real Studio Plugins - Pfarrgemeinde Messdiener Nickenich