Order by two columns
Hi!
I have this dataset
userid time
1 28
1 29
2 34
3 2
1 5
2 6
I need to order this data by user and then by time so the desired result is
user time
1 5
1 28
1 29
2 6
2 34
3 2
How can I do it? It doesn't work by using 2 sorts in any order.....
0
Best Answer
-
bea11005 Member Posts: 20
Maven
Answers
There is a very nice multi-attribute Sort operator in the Jackhammer extension in the Marketplace.
Lindon Ventures
Data Science Consulting from Certified RapidMiner Experts
Hi,
You would need a combination of Sort, Group into collection and loop collection operator to achieve this task.
Here is the XML code for the sample process for the same.
Hope this helps.
Cheers,