sorting distritcs