Aaaaand pages sorting is done.