removes dead code

is not used anymore for sorting pages