I have this midi text data:
7 On 43
8 On 36
9 On 51
9 On 51(25%)  -- Microtone: +25%
11 On 43
11 On 43(50%)  -- Microtone: +50%
13 On 48
13 On 48(25%)  -- Microtone: +25%
20 On 55
36 On 55
36 On 55(50%)  -- Microtone: +50%
51 On 60
51 On 60(25%)  -- Microtone: +25%
67 On 60
67 On 60(50%)  -- Microtone: +50%
90 On 55
103 On 51
103 On 51(25%)  -- Microtone: +25%
121 On 55
134 On 51
134 On 51(50%)  -- Microtone: +50%
135 On 60
135 On 60(25%)  -- Microtone: +25%
175 On 55
175 On 55(50%)  -- Microtone: +50%
286 On 60
302 On 43
302 On 43(50%)  -- Microtone: +50%
303 On 36
304 On 43
304 On 43(25%)  -- Microtone: +25%
304 On 48
312 On 55
328 On 55
341 On 60
351 On 60
367 On 55
383 On 51
383 On 51(25%)  -- Microtone: +25%
404 On 55
421 On 51
421 On 51(50%)  -- Microtone: +50%
421 On 60
458 On 55
563 On 60
578 On 55
578 On 63
579 On 48
579 On 51
591 On 67
606 On 67
617 On 72
631 On 72
660 On 67
677 On 72
693 On 75
693 On 75(25%)  -- Microtone: +25%
694 On 67
736 On 72
835 On 75
835 On 75(50%)  -- Microtone: +50%
848 On 67
849 On 48
849 On 51
849 On 55
860 On 75
860 On 75(25%)  -- Microtone: +25%
873 On 75
887 On 79
898 On 79
911 On 75
911 On 75(50%)  -- Microtone: +50%
924 On 72
935 On 75
935 On 75(25%)  -- Microtone: +25%
950 On 48
950 On 51
950 On 55
951 On 67
951 On 79
991 On 48
991 On 51
991 On 55
1008 On 67
1008 On 75
1008 On 79
1030 On 48
1030 On 51
1031 On 55
1031 On 55(25%)  -- Microtone: +25%
1045 On 67
1045 On 67(50%)  -- Microtone: +50%
1069 On 72
1083 On 55
1085 On 48
1085 On 51
1085 On 51(25%)  -- Microtone: +25%
1096 On 67
1096 On 67(50%)  -- Microtone: +50%
1110 On 63
1124 On 67
1137 On 63
1138 On 48
1138 On 51
1138 On 55
1138 On 72
1173 On 51
1173 On 51(25%)  -- Microtone: +25%
1174 On 48
1174 On 55
1174 On 55(50%)  -- Microtone: +50%
1190 On 72
1191 On 63
1210 On 48
1210 On 51
1210 On 55
1225 On 60
1238 On 63
1252 On 67
1264 On 43
1265 On 50
1265 On 53
1265 On 55
1265 On 67
1266 On 47
1266 On 71
1294 On 59
1322 On 55
1335 On 57
1335 On 57(25%)  -- Microtone: +25%
1351 On 59
1351 On 59(50%)  -- Microtone: +50%
1363 On 60
1363 On 60(25%)  -- Microtone: +25%
1377 On 62
1378 On 53
1379 On 59
1379 On 59(25%)  -- Microtone: +25%
1389 On 67
1404 On 67
1404 On 67(50%)  -- Microtone: +50%
1421 On 71
1421 On 71(25%)  -- Microtone: +25%
1424 On 67
1424 On 67(50%)  -- Microtone: +50%
1432 On 71
1456 On 67
1483 On 72
1483 On 72(25%)  -- Microtone: +25%
1484 On 67
1484 On 67(50%)  -- Microtone: +50%
1509 On 62
1543 On 67
1543 On 67(25%)  -- Microtone: +25%
1545 On 62
1569 On 67
1569 On 67(50%)  -- Microtone: +50%
1571 On 55
1600 On 67
1601 On 55
1601 On 59
1601 On 59(25%)  -- Microtone: +25%
1602 On 53
1625 On 55
1625 On 55(50%)  -- Microtone: +50%
1637 On 57
1650 On 59
1662 On 60
1662 On 60(25%)  -- Microtone: +25%
1676 On 53
1676 On 62
1677 On 59
1677 On 59(50%)  -- Microtone: +50%
1688 On 67
1704 On 67
1718 On 71
1730 On 71
1756 On 67
1785 On 72
1786 On 67
1810 On 62
1843 On 67
1845 On 62
1869 On 55
1896 On 67
1897 On 59
1898 On 53
1898 On 55
1921 On 55
1932 On 57
1946 On 59
1958 On 60
1972 On 53
1972 On 62
1973 On 59
1973 On 59(25%)  -- Microtone: +25%
1974 On 55
1984 On 67
1998 On 67
2010 On 71
2022 On 71
2048 On 67
2076 On 72
2077 On 67
2102 On 62
2138 On 62
2138 On 67
2138 On 67(50%)  -- Microtone: +50%
2165 On 55
2165 On 55(25%)  -- Microtone: +25%
2194 On 55
2194 On 59
2194 On 67
2195 On 53
2219 On 55
2231 On 57
2246 On 59
2272 On 55
2285 On 57
2297 On 53
2297 On 59
2310 On 60
2322 On 62
2335 On 63
2347 On 65
2360 On 67
2372 On 69
2386 On 71
2398 On 60
2399 On 63
2399 On 72
2412 On 67
2426 On 67
2437 On 75
2451 On 75
2451 On 75(25%)  -- Microtone: +25%
2475 On 72
2501 On 72
2501 On 79
2526 On 67
2557 On 55
2557 On 60
2557 On 63
2557 On 63(50%)  -- Microtone: +50%
2580 On 60
2595 On 63
2608 On 55
2608 On 63
2609 On 60
2620 On 67
2634 On 67
2647 On 72
2661 On 72
2684 On 67
2712 On 72
2714 On 67
2738 On 60
2769 On 72
2771 On 55
2771 On 60
2771 On 63
2797 On 55
2824 On 60
2824 On 72
2825 On 56
2825 On 63
2839 On 68
2850 On 68
2863 On 72
2877 On 72
2904 On 68
2929 On 68
2929 On 75
2957 On 63
2989 On 63
2989 On 75
3016 On 56
3029 On 68
3043 On 72
3045 On 56
3046 On 60
3047 On 63
3057 On 68
3069 On 68
3081 On 72
3096 On 72
3125 On 68
3150 On 75
3151 On 60
3151 On 68
3151 On 68(25%)  -- Microtone: +25%
3151 On 56
3151 On 63
3156 On 68
3180 On 63
3180 On 63(50%)  -- Microtone: +50%
3211 On 56
3211 On 60
3211 On 75
3212 On 63
3212 On 68
3239 On 56
3265 On 60
3265 On 62
3265 On 66
3266 On 57
3266 On 74
3273 On 69
3291 On 69
3304 On 74
3317 On 74
3343 On 69
3369 On 74
3370 On 57
3370 On 60
3370 On 62
3370 On 66
3397 On 62
3427 On 57
3427 On 60
3427 On 62
3429 On 66
3430 On 74
3456 On 62
3486 On 74
3487 On 66
3488 On 57
3488 On 60
3488 On 62
3496 On 69
3513 On 69
3525 On 74
3538 On 74
3565 On 69
3592 On 66
3592 On 74
3593 On 57
3593 On 60
3593 On 62
3619 On 62
3654 On 66
3654 On 74
3685 On 62

I wnat you to reorganize this text by reordening it on paragraphs based on the number after the On, example:

36:
8 On 36
303 On 36

48:
13 On 48
13 On 48(25%)  -- Microtone: +25%
304 On 48
579 On 48
849 On 48
950 On 48
991 On 48
1030 On 48
1085 On 48
1138 On 48
1174 On 48
1210 On 48