user warning: Table './zuggsoftdb/accesslog' is marked as crashed and should be repaired query: INSERT INTO accesslog (title, path, url, hostname, uid, sid, timer, timestamp) values('', 'node/452', '', '38.107.179.243', 0, 'p9hsf3bgjdo5ftg4qbk7n6hpq6', 8300, 1337601292) in /home/tessh/public_html/modules/statistics/statistics.module on line 64.

Documentation

sort

Syntax: %sort(list,dir)

returns the list with items sorted in alphabetical order. If dir is missing or zero, list is sorted in ascending order. If dir is non-zero, list is sorted in descending order.

Examples:

#VAR slist {123|ab|45|008|789|ABC|ab cd|def|9}
#SHOW %sort(@slist)


displays:

008|123|45|789|9|ab|ab cd|ABC|def

#SHOW %sort(@slist,1)

displays:

def|ABC|ab cd|ab|9|789|45|123|008

Add comment

Login or register to post comments