Refresh on sorting change using jQuery