SORT(key1:value1[,key2:value2[,...]])
Processes a list of keys and values and returns a comma-separated list of the keys sorted based on their floating-point values.
; Sort a list:
exten => 123,1,Set(foo=${SORT(four:4|half:.5|hundred:100|pi:3.14|e:2.718
28|minusone:-1)})
; foo is now "minusone,half,e,pi,four,hundred"
|
|
|
Internal help for this application in Asterisk 1.4: -= Info about function 'SORT' =- [Syntax] SORT(key1:val1[...][,keyN:valN]) [Synopsis] Sorts a list of key/vals into a list of keys, based upon the vals [Description] Takes a comma-separated list of keys and values, each separated by a col on, and returns a comma-separated list of the keys, sorted by their values. Values will b e evaluated as floating-point numbers. diff output to internal help in Asterisk 1.2: - none - |