aa_macro syntax 
 aa_macro source 
 HTML source 
 HTML render 
Key

4.60 - [lhsort] Built-In

Mnemonic aid: lhsort for leading HAM radio callsign SORT

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

Sort listName by a leading HAM radio callsign, separated from the rest of the list items by a non-alphanumeric character such as a space or comma. HAM calls are sorted by call area first, then leading alpha characters, then trailing alpha characters. Alpha character sorting is not case-sensitive. If rev=1 is supplied, the sort order is reversed:


[lhsort (rev=1,)listName]

[list sep=|,names,WB4YQK Pete|AA7AS Ben|N4IFP Tim|ke4tp Pete]
[dlist inter=[co] ,names]
[lhsort names]
[dlist inter=[co] ,names]
[lhsort rev=1,names]
[dlist inter=[co] ,names]

WB4YQK Pete, AA7AS Ben, N4IFP Tim, ke4tp Pete
ke4tp Pete, N4IFP Tim, WB4YQK Pete, AA7AS Ben
AA7AS Ben, WB4YQK Pete, N4IFP Tim, ke4tp Pete
WB4YQK Pete, AA7AS Ben, N4IFP Tim, ke4tp Pete ke4tp Pete, N4IFP Tim, WB4YQK Pete, AA7AS Ben AA7AS Ben, WB4YQK Pete, N4IFP Tim, ke4tp Pete

Other built-ins used here:  [co] ,  [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