Change sort POST to PUT
Fix sorting