fix page sorting for AR