Checks if an array is sorted.
isSorted<T>(arr: T[], sortType: SortType): boolean
T[]
SortType
boolean