aa_macro syntax 
 aa_macro source 
 HTML source 
 HTML render 
Key

§ 4.61 - [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:


[page]

[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
AA7AS Ben, ke4tp Pete, N4IFP Tim, WB4YQK Pete
WB4YQK Pete, N4IFP Tim, ke4tp Pete, AA7AS Ben
WB4YQK Pete, AA7AS Ben, N4IFP Tim, ke4tp Pete AA7AS Ben, ke4tp Pete, N4IFP Tim, WB4YQK Pete WB4YQK Pete, N4IFP Tim, ke4tp Pete, AA7AS Ben

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

Keyboard Navigation
, Previous Page . Next Page t TOC i Index
This manual was generated with wtfm
on February 6th, 2026 at 22:53 MT
wtfm uses aa_macrov3 and SqLite
aa_macrov3 uses Python 2.7