sort into a clean and dirty list of pages