Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'sorting nested lists' topicStudent Support Forum > General > "sorting nested lists"

Next Comment >Help | Reply To Topic
Author Comment/Response
Nadine
07/23/03 9:12pm

Hi,
I have tried for some time to sort a simple binary nested list, unsuccessfully. All I am trying to do is to order,e.g.

{{0,0,1},{1,1,0},{1,0,0}}

according to how many 1's are in each subset, so the return should look like

{{1,1,0},{1,0,0},{0,0,1}} or {{1,1,0},{0,0,1},{1,0,0}}
depending on whether it matters where the 1's are.

Thanks for any suggestions.

URL: ,

Subject (listing for 'sorting nested lists')
Author Date Posted
sorting nested lists Nadine 07/23/03 9:12pm
Re: sorting nested lists VL 07/25/03 00:21am
Re: sorting nested lists Robert 07/26/03 6:40pm
Next Comment >Help | Reply To Topic