Run »
import numpy as np arr = np.array([True, False, True]) print(np.sort(arr))
[False True True]