Sorting the added QML elements in the ListModel
I am writing an alarm clock in QML, I am required to sort the alarms in ascending order (depending on the date or time (if there are several alarms on the same day).
I've done the sorting for existing alarm clocks (which are available from the very beginning. View the Alarm file Model.xml, the sort Model() function )
I need to sort the new alarms (which we add) in ascending order (depending on the date or time (if on the same day))
I attach the code below, this is my whole project, going to Qt Creator.
I have only 2 additions sorted and only by year, what should I do?

Рекомендуем хостинг TIMEWEB
Стабильный хостинг, на котором располагается социальная сеть EVILEG. Для проектов на Django рекомендуем VDS хостинг.Комментарии
Пожалуйста, авторизуйтесь или зарегистрируйтесь
Timeweb
Позвольте мне порекомендовать вам отличный хостинг, на котором расположен EVILEG.
В течение многих лет Timeweb доказывает свою стабильность.
Для проектов на Django рекомендую VDS хостинг
Посмотреть Хостинг