Sorting Numpy Array Initialization Cpp