471,055 Members | 1,840 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,055 software developers and data experts.

sort the list

I have a list like [[1,4],[3,9],[2,5],[3,2]]. How can I sort the list
based on the second value in the item?
That is,
I want the list to be:
[[3,2],[1,4],[2,5],[3,9]]
Nov 22 '05 #1
0 700

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Steve Pinard | last post: by
3 posts views Thread by Brian McGonigle | last post: by
12 posts views Thread by Eva | last post: by
20 posts views Thread by Xah Lee | last post: by
11 posts views Thread by Leon | last post: by
99 posts views Thread by Shi Mu | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.