Sorting the formats() by id results in the same order as the
itemDatas are defined in the xml file. This is required for
several reasons:
- KTextEditor currently uses the first format if no format was explicitly specified (which typically is "Normal Text")
- Fonts & Colors will list the itemDatas in correct order
- Printing the syntax guide is sorted correctly as well