Factions are now properly sorted