Code: Select all
1,3,1,1,1,1
2,3,,,1
3
4,3,,1,1,1
5,3,1,1,,1
6,3,,1,,1
7,3,1,1,1,1
8,3,,1
9,3,,1,1,1
10
11,4,1,1,1,1
12,4,1,1,1,1
13,4,,1,1,1
14,4,,1,1
15,4,,1,1,1
16,4,1
17
18,4,,,1,1
19,4,,,1,1
20,4,,1,1
21,5,,1,1,1
22,5,1
23,5,1,1,1,1
24,5,,,1,1
25
26,5,,,,1
27,5,,,1,1
28,5,,,1,1
29,5,,,,1
30,5,,,1
31,6,1,1,1,1
32,6,1,,1,1
33,6,,1
34,6,1,1,1
35,6,,,,1
36,6,,1,,1
37,6,,1,1,1
38,6,,1,1
39,6,,,1
40,6,,,1,1
41,7,,1,1,1
42,7,1,1,1,1
43,7,1,1,1,1
44,7,,1,,1
45,7,,1,1,1
46,7,1,1
47,7,,,,1
48,7,,1
49,7,,1,,1
50,7,,,1
51,1,1,1,1,1
52,1,,1,1,1
53,1,,,1,1
54,1,,1,,1
55,1,,,,1
56,1,,1,1
57,1,,,,1
58,1,,,,1
59
60,1,,,1,1
61,2,,1,1,1
62
63,2,,,,1
64,2,,,1,1
65,2,,1,1,1
66,2,,,,1
67,2,,,1
68
69
70,2,,1,1,1
I'm trying to sort the above list by item 2 numerically. However, I need each line which does not have an item 2 to stay within it's proper group. Ideally, I want it to start with item 2 = 1, then 2, then 3, and so on, but it should be the case that for each different number 2 set there should be 10 lines (i.e., 10 lines for when item 2 = 1, 10 lines for when item 2 = 2, etc.). Therefore, the blank lines need to stay with their appropriate group.
Another possibility would be to find a way to put in the missing number 2 item. I will tinker with that.
But is it possible to sort them in such a way to accomplish this?
Thanks,
PoLy