Me refiero a que dentro de la linea del texto tomar dos valores, hacer sort con el primero y luego con el segundo, ejemplo de la linea:

>**000322070**07406207425956696I0ILCAC  >-0000000000064.810000000030000.000000000002424.44+0000000001950.00S000.0652**01>8-07-21**12.30.16.647355-0000000000539.250060CAM1807250001

O sea que queden ordenados por fecha y luego por los primeros 8 caracteres, para que queden así:

>K5311779007446097434012279F0TDCAV  >-0000000000153.440000000023800.000000000001237.60+0000000001547.00S000.0652018->07-1815.55.06.23689800000000000155.960060CAM1807260001
>K5331641007409609665153031F0NOMCPN2+0000000000015.720000000011300.0000000000005>32.20+0000000000532.20N000.0002018-07->1802.48.00.70072500000000000015.720060CAM1807260001
>K5370019007422007433854853F0TDCAV  >-0000000000142.770000000022200.000000000001154.40+0000000001443.00S000.0652018->07-1802.48.00.70259200000000000145.830060CAM1807260001
>K5399421007422279665556169FAUTOCZ04->0000000003813.450000000308900.000000000008168.77+0000000008168.77N000.0002018->07-1810.08.48.477936-0000000003813.450060CAM1807260001
>00004024007459977434028299F0TDCAG  >-0000000000031.000000000004400.000000000000228.80+0000000000286.00S000.0652018->07-1909.57.16.302506000000000000026.20060CAM1807260001
>00009218007409609665551302FANOMCD01+0000000000193.040000000000223.3100000000001>11.64+0000000000111.64N000.0002018-07->1901.54.46.59053200000000000193.040060CAM1807260001
>00043838007435287415864394I0ILCVO  >-0000000000217.400000000236600.000000000005377.50+0000000015379.00S000.0652018->07-1901.54.46.593981000000000009784.10060CAM1807260001
>00060955007436977303431148I0ILCPN  >-0000000000048.610000000022500.000000000000625.28+0000000001462.50S000.0652018->07-1901.54.46.59649600000000000788.610060CAM1807260001