Skip to main content
8 events
when toggle format what by license comment
Oct 30, 2012 at 14:02 comment added Oleksandr R. Two or more, use a... Nest? Dijkstra would be proud! :)
Oct 30, 2012 at 12:37 comment added Dr. belisarius @J.M. orderingBy[list_, f_] := Ordering[{f@#, #} & /@ list]
Oct 30, 2012 at 11:48 comment added Mr.Wizard @SungjinLee take a look at this: mathematica.stackexchange.com/q/2934/121
Oct 30, 2012 at 11:14 comment added J. M.'s missing motivation @Sungjin, Ordering[{{1, 5}, {2, 8}, {3, 9}, {4, 2}, {5, 9}, {6, 7}, {7, 9}, {8, 10}, {9, 5}, {10, 2}}, All, If[Last[#1] != Last[#2], Last[#1] > Last[#2], First[#1] <= First[#2]] &]
Oct 30, 2012 at 11:07 comment added J. M.'s missing motivation Sometimes, I wish they'd added an OrderingBy[] in complete analogy to SortBy[]...
Oct 30, 2012 at 11:02 comment added Sungjin Lee oh, I miss that part. If second element is same, I want to rank the sublists in ascending order of first element. Can you help me one more time please?
Oct 30, 2012 at 10:59 history edited Mr.Wizard CC BY-SA 3.0
added 158 characters in body
Oct 30, 2012 at 10:50 history answered Mr.Wizard CC BY-SA 3.0