#4: sort pages