Added `is_array_sorted`.