Refactors the enumeration for sorting the display of pages