Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 11.0   11.1   11.2   11.3   11.4   11.5   12.0   12.1   12.2   12.3    Statistic    FMM    Blog  


Sorts a list with using an expression to evaluate.

Component Version macOS Windows Linux Server iOS SDK License
List 10.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes Paid
MBS( "QuickList.SortWithEvaluate"; ListRef; Expression )   More


Parameter Description Example
ListRef The reference to the list returned from QuickList.New function. $List
Expression The expression to evaluate.
Can include "leftValue" and "rightValue" as variables.
"leftValue > rightValue"


Returns OK or error.


Sorts a list with using an expression to evaluate.
The expression is run every time two values are compared, so keep it quick. It should return 1 if leftValue is smaller than rightValue.

Our normal QuickList.Sort is faster due to not having the overhead of evaluating expressions.

See also

Release notes

Blog Entries

Created 9th April 2020, last changed 9th April 2020

QuickList.SortWith - QuickList.SubList

Feedback: Report problem or ask question.

Start Chat