Это один подход с использованием datetime
и sorted
Пример:
import datetime
with open(filename) as infile:
data = sorted([line.split() for line in infile], key=lambda x: datetime.datetime.strptime(x[-2], "%d/%m/%y"))
print(data)
Выход:
[['47.00', '1', '87', '447', '08/01/13', '0'],
['73.00', '1', '87', '241531', '02/06/19', '1'],
['95.00', '1', '87', '244012', '06/06/19', '1'],
['126.00', '1', '87', '242697', '08/06/19', '1'],
['106.00', '1', '87', '242699', '08/06/19', '1'],
['94.00', '1', '87', '242293', '09/06/19', '1'],
['192.00', '1', '87', '242710', '09/06/19', '1'],
['54.00', '1', '87', '243243', '13/06/19', '1'],
['106.00', '1', '87', '243421', '13/06/19', '1']]