Скрипт Python для сортировки файла содержимого
with open('shopping.txt', 'r') as r:
for line in sorted(r):
print(line, end='')
vettiyankan
with open('shopping.txt', 'r') as r:
for line in sorted(r):
print(line, end='')