Fix small bug in sort test (OS X)