|
|
+
Roberto Maestre 2012-04-12, 14:15
-
Re: Sort sub-data by second fieldGianmarco De Francisci Mo... 2012-04-12, 14:36
Hi,
grunt> describe c c: {group: int,a: {(f2: int,f3: int)}} grunt> dump c (1,{(1,3),(2,4),(3,2),(4,1)}) grunt> d = foreach c { a1 = order a by f3 desc; generate group, a1; } grunt> dump d (1,{(2,4),(1,3),(3,2),(4,1)}) Cheers, -- Gianmarco On Thu, Apr 12, 2012 at 16:15, Roberto Maestre < [EMAIL PROTECTED]> wrote: > Hi! > I have this data : > > (1,{(1,3),(2,4),(3,2),(4,1)}) > > so ... can i order the second column by the second field ? .. getting this > result: > > (1,{(2,4),(1,3),(3,2),(4,1)}) > > Thank you in advanced. > Best regards. > |