Sort now functioning across pages