There is bug in this extension, as mentioned here
Please use the new buildin 'sort list' block instead.
This is a simple extension, and now only have one block to sort a list:
Download link:
cn.kevinkun.listutil.aix (8.8 KB)
How to use
- make a procedure with 2 parameters, and return a number (integer or float both ok)
Example:
-
sort a list of number
-
sort a list of list according to 2nd item (a number) of sublist
3, sort a list of list according to 1st item (a string) of sublist
- sort a list of list according to lenth of 1st item
if a decending list wanted, just change symbol of procedure's return value.