Skip to content
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

[SR-640] Sorting inconsistencies with or without Objective-C #43257

Closed
glessard opened this issue Jan 29, 2016 · 1 comment
Closed

[SR-640] Sorting inconsistencies with or without Objective-C #43257

glessard opened this issue Jan 29, 2016 · 1 comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. standard library Area: Standard library umbrella

Comments

@glessard
Copy link
Contributor

Previous ID SR-640
Radar None
Original Reporter @glessard
Type Bug
Status Closed
Resolution Duplicate
Additional Detail from JIRA
Votes 0
Component/s Standard Library
Labels Bug
Assignee None
Priority Medium

md5: b7d91e1aea77a1901cd5b02f7f58660c

Issue Description:

On OSX:

$ swift
Welcome to Apple Swift version 3.0-dev (LLVM f95d47afa7, Clang f66c5bb67b, Swift b745691a38). Type :help for assistance.
  1> "t" < "Tt"
$R0: Bool = false

On Linux:

$ swift
Welcome to Swift version 2.2-dev (LLVM f90171f6b9, Clang fe39b0b18f, Swift a476c2828a). Type :help for assistance.
  1> "t" < "Tt"
$R0: Bool = true

Unfortunately, it's not clear how/whether to fix the problem, because of the number of times this is mentioned as a possibility in the source code. What is the desired behaviour? The String documentation implies the "Standard Sort Order" is expected, but NSString does not do that. The NSString behaviour is probably closer to "American English (Computer, Standard Sort Order)".

@glessard
Copy link
Contributor Author

Duplicate of: https://bugs.swift.org/browse/SR-530
Should have searched twice.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. standard library Area: Standard library umbrella
Projects
None yet
Development

No branches or pull requests

1 participant