Run »
import numpy as np arr = np.array(['banana', 'cherry', 'apple']) print(np.sort(arr))
['apple' 'banana' 'cherry']