madskristensen/MiniBlog

Sort Categories when saving to XML

appetere opened this issue · 0 comments

When using Post.Categories the Categories are returned in the order they are in the stored XML.

By default, they are also displayed in this order, so this is often not alphabetical.

Calling code can sort the Categories each time, but as an optimisation propose that the Categories are sorted into alphabetical order, when saving to XML.