ExampleGet your own Python Server Sort the array: import numpy as np arr = np.array([3, 2, 0, 1])print(np.sort(arr)) Try it Yourself » Note: This method returns a copy of the array, leaving the original array unchanged.
Well organized and easy to understand Web building tutorials with lots of examples of how to use HTML, CSS, JavaScript, SQL, Python, PHP, Bootstrap, Java, XML and more.