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
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
--
Try this tutorial by Sajal: http://www.imagnity.com/tutorials/app-inventor/list-sorting-on-app-inventor/
You may find this one useful too: http://www.imagnity.com/tutorials/app-inventor/list-blocks-on-app-inventor/
--
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.:)
--
--
댓글 없음:
댓글 쓰기