Sort lists before display