Run ❯
Get your
own
website
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
import numpy as np arr = np.array(['banana', 'cherry', 'apple']) print(np.sort(arr))
['apple' 'banana' 'cherry']