Working sort_by_selected status
Minor changes to pagination/orders