Hola @david,
I think we need to put a kind of note or advice on Sort Array plugin:
The plugin works fine when the array contains number or text values but if you create a array of dates and use this plugin, the result is wrong due to the code handles the dates as text/string and everything is a little mess.
My PIC can give you an idea of this situation and the wrong order: January ( 1), October (10), June ( 6) and July ( 7).
.So far, my workaround to do it correctly is using this Jeff’s trick showed here (convert dates to number values): Agent for information - #85 by Jeff_Hager
I hope it helps and avoid future problems.
Feliz dÃa!