aa_macro syntax 
 aa_macro source 
 HTML source 
 HTML render 
Key

§ 4.60 - [isort] Built-In

Mnemonic aid: isort for leading Integer SORT

See also:  [aisort] ,  [append] ,  [asort] ,  [clearl] ,  [cmap] ,  [dlist] ,  [e] ,  [hmap] ,  [lcc] ,  [lcopy] ,  [lhsort] ,  [list] ,  [ljoin] ,  [llen] ,  [lpop] ,  [lset] ,  [lslice] ,  [lsplit] ,  [lsub] ,  [ltol]  and  [translate] 

Sort listName by a leading integer, separated from the rest of the list items by a comma. If rev=1 is supplied, the sort order is reversed:


[isort (rev=1,)listName]

[list sep=|,names,1,Larry|3,asia|4,Katya|2,Alfred]
[dlist inter= ,names]
[isort names]
[dlist inter= ,names]
[isort rev=1,names]
[dlist inter= ,names]

1,Larry 3,asia 4,Katya 2,Alfred
1,Larry 2,Alfred 3,asia 4,Katya
4,Katya 3,asia 2,Alfred 1,Larry
1,Larry 3,asia 4,Katya 2,Alfred 1,Larry 2,Alfred 3,asia 4,Katya 4,Katya 3,asia 2,Alfred 1,Larry

Other built-ins used here:  [dlist]  and  [list] 

Keyboard Navigation
, Previous Page . Next Page t TOC i Index

Valid HTML 4.01 Loose
 

This manual was generated with wtfm
wtfm uses aa_macro and SqLite
aa_macro uses Python 2.7