Sorting Numpy Array Initialization Javascript