Remove sort function