NumPy places NaN values at the end of the sorted result when sorting arrays with NaN values.