2017년 6월 8일 목요일

Sorting list of lists


I have been looking on the web for a way to sort a list of lists in ai2. I have seen an effective way of using javascript to sort a list

http://puravidaapps.com/snippets.php#2sort

but I wondered if anyone knew how to extend this to list of lists?

i.e.
Number  title          age
1           hello          12
2           goodbye    15
3           something  6

this list of lists could be sorted by age in descending

Number  title          age
2           goodbye    15
1           hello          12
3           something  6
--
using the mentioned JavaScript method, you also can sort list of lists
Taifun

Thank you both for your reply. Taifun, this is exactly what I was trying to work out, many thanks. Your website has been very useful to me and I will be donating some money next time I use the code.:)

--

댓글 없음:

댓글 쓰기