obey sorting rules