fixed garrison and unit sort