How to Sort?? Pls help!!

The segment titled "Before" shows how it is now and the segment "After" (shown below) is how I want it to be sorted. Probably as a CSV format so that I can export it to a spreadsheet.

Need your help and suggestions!!

Before:

1500.100:

by the old run:
-- --- --- ----
neitqodo < 1500.100: XYZ: 56433
neitrmq5 < 1500.100: XYZ: 11442
neitrmq5 < 1500.100: XYZ: 11442

by the new run:
-- --- --- ----
neitqodo > 1500.100: XYZ: 14192
neitrmq5 > 1500.100: XYZ: 87068
neitrmq5 > 1500.100: XYZ: 87068

Occurrences in old:
2272
Occurrences in new:
2272

--------------------------------------------------------------------------
------------------------------

1500.19.14:

by the old run:
-- --- --- ----
neits7vf < 1500.19.14: SUPERPROVID: g19507
neits7vf < 1500.19.14: SUPERPROVID: g19507
neits7vf < 1500.19.14: SUPERPROVID: g19507

by the new run:
-- --- --- ----
neits7vf > NOTUSED1500.19.14: SUPERPROVID: g19507
neits7vf > NOTUSED1500.19.14: SUPERPROVID: g19507
neits7vf > NOTUSED1500.19.14: SUPERPROVID: g19507

Occurrences in old:
31
Occurrences in new:
31

--------------------------------------------------------------------------
------------------------------

AFTER (Old run in one column and the new run in another column with # of occurances in a column between them)

neitqodo < 1500.100: XYZ: 56433 2272 neitqodo > 1500.100: XYZ: 14192
neitrmq5 < 1500.100: XYZ: 11442 neitrmq5 > 1500.100: XYZ: 87068
neitrmq5 < 1500.100: XYZ: 11442 neitrmq5 > 1500.100: XYZ: 87068

neits7vf < 1500.19.14: SUPERPROVID: g19507 31 neits7vf > NOTUSED1500.19.14: SUPERPROVID: g19507
neits7vf < 1500.19.14: SUPERPROVID: g19507 neits7vf > NOTUSED1500.19.14: SUPERPROVID: g19507
neits7vf < 1500.19.14: SUPERPROVID: g19507 neits7vf > NOTUSED1500.19.14: SUPERPROVID: g19507

You are missing the picture. :frowning: