Whoops, switch back to correct sort function