solutions/max_kaskevich/tasks2/sources/task2.4/main.cpp: removing sorting and small refactoring.