Fix sort versions which take a function as the first parameter.
Actually make taking a function argument work...