Sort table based on jQuery