Fixed major PSM sorting bug