I use AgendaList snippet to display events of a specific category… some of them are repeated ones (quite often for some) so i used &groupby =id to display them only once, the closest in time only.
I noticed that the repeating dates (of the subquery probably) are sorted according to their ID, not the startdate. So, if you add a date of recurrence after another one, even if the new one is closer in time, the one you added first is still the one displayed.
Do you have any idea to sort them from closest to furthest in time ?