Suppose I have the following list:
list = {{1,3.4},{2,6.7},{3,0},{1,2},{2,8.6},{3,7.9},{1,0},{2,7.8},{3,5}};
I will like to sort the list by the first term in the order they are presented on the list like the following:
{{1,3.4},{1,2},{1,0},{2,6.7},{2,8.6},{2,7.8},{3,0},{3,7.9},{3,5}}.
Finally I will like to make three different list which select the cases starting with certain number as:
list1 = {{1,3.4},{1,2},{1,0}}
list2 = {{2,6.7},{2,8.6},{2,7.8}}
list3 = {{3,0},{3,7.9},{3,5}}
GatherBy[]
. $\endgroup$GatherBy[data, First]
not solve your problem completely? $\endgroup$