[stdlib] De-gyb sorting (#9135)

* [stdlib] De-gyb sort algorithms

* [stdlib] Rename Sort.swift.gyb

* Update tests for de-gybbed sort
This commit is contained in:
Ben Cohen
2017-04-30 18:11:27 -07:00
committed by GitHub
parent 8790997723
commit 43211b602a
5 changed files with 66 additions and 137 deletions

View File

@@ -389,7 +389,7 @@ extension MutableCollection
return ()
}
if didSortUnsafeBuffer == nil {
_introSort(&self, subRange: startIndex..<endIndex)
_introSort(&self, subRange: startIndex..<endIndex, by: <)
}
}
}