Sorry for the late answer, my life is busy as hell right now.
jballi wrote: ↑25 May 2022, 04:10
Gewerd_Strauss wrote: ↑23 May 2022, 01:58
Is there a way to autosort the reminders based on when they expire?
[...] Since this check/update is performed once every second, it would slow down the check/update process and for some computers, it might interfere with the operation of the program. [...] A separate routine would have to be written in order to sort the data. [...]
Don't really see that being the problem, because you would just integrate the autosort into the gui_show-subroutine, so a sorting array is created once upon calling to show the GUI, and then you just print in that order. There's no need to check every time the guiupdate routine is called, because once sorted they are sorted until you add/remove/edit any reminder.
Also, the column data is not really in a format that works for sorting
[/quote]
Not really.
Just an idea I thought about over the past few days:
In principle, once one has the the string in the status-column, one would extract all integers, convert them down to seconds. Then you create an simple array: as keys the converted times in seconds as an integer, and the respective position in the LV as value. Because this array would be simple in nature, it autosorts itself. And once you have the simple array constructed, you reconstruct the data order based on the key, and then loop through this second array when populating via LV_Add.
Alternatively, you create a third column (which seems to be unpopulated right now), and insert the TimesInSeconds in there. Then just sort via this column's values.
But considering all labels are hardcoded, I understand why this would be a somewhat big task to integrate this, and maybe too much work for such little gain.
Thank you for your answer nonetheless.
Maybe, once I find time, I'll take inspiration and write up a hotfix to do this.