Fixed the Sort Order fields, so that they actually work.