in my case the latest templates are not added at the end of the list (but somewhere randomly) and
this workaround would be annoying if you want to add an entry on top or in the middle.
With alphanumeric sorting, one could organize the order of the templates via prefixes (01…99, or “private → Lorem Ipsum”, “professional → Lorem Ipsum”, etc.)
I have struggled with the same issue. I have even tried the solution that you mention but it simply doesn’t work (at least not in the latest 0.10.3 Win10/11 release).
@mentaloid helped me to arrange journal pages in ascending order on the desktop app’s default home page with some Javascript code (by default journal pages are listed by date in descending order). Could the same be done for the templates command palette?
Honestly, I don’t want to use the code in my current installation as I use it productively.
But since I haven’t gotten any other feedback on this yet, I’d rather change the category of this post to “feature request” and edit the initial post accordingly. This will also refer to your code and maybe your code will help the developers to implement a general solution for future versions.