The Toolkit for Online Communities
18916 Community Members, 0 members online, 1576 visitors today
Log In Register
OpenACS Home : Forums : OpenACS Q&A : Sorting list of arrays by value : One Message

Forum OpenACS Q&A: Response to Sorting list of arrays by value

Posted by Tilmann Singer on
Check out lsort -index, to sort a list of lists depending on a specific value in the inner list. You need to somehow construct a list like this {{id percentage} {id percentage}}, which unfortunately array get won't give you, but there are numerous other ways to do that.