Skip to content

Implemented various sorting methods from the NSMutableArray class #165

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 23, 2015

Conversation

sgl0v
Copy link
Contributor

@sgl0v sgl0v commented Dec 19, 2015

Implemented sortUsingFunction, sortUsingComparator, sortWithOptions methods from the NSMutableArray class.


func test_sortUsingFunction() {
let inputNumbers = [11, 120, 215, 11, 1, -22, 35, -89, 65]
let mutableInput = inputNumbers.bridge().mutableCopy() as! NSMutableArray
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This currently fails due to a secondary failure of NSArray's mutable copy not returning the correct value on linux

phausler added a commit that referenced this pull request Dec 23, 2015
Implemented various sorting methods from the NSMutableArray class
@phausler phausler merged commit a7d1dd1 into swiftlang:master Dec 23, 2015
@phausler
Copy link
Contributor

I pushed a fix for the mutableCopy case for linux; which is a work-around for the same underlying problem as SR-310

atrick pushed a commit to atrick/swift-corelibs-foundation that referenced this pull request Jan 12, 2021
[test] Flip the default value of allowUnexpectedNotification
kateinoigakukun pushed a commit to kateinoigakukun/swift-corelibs-foundation that referenced this pull request Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants