Improved PM sorting.
PM sorting now differentiates between PMs which are on/off. -> PMs on are sorted in ascending order and put at the start of the list. -> PMs off are sorted in descending order and put at the end of the list.
Also fixed a typo in the SortType enum.
Authored by: dbartok 2015-09-17
Parent: [r12]
Child: [r14]