sort page list (i want ruby back!)