Add custom page sorting