Fix bug in CollectionUtils#isSorted