Remove old scala sort function