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

Surprising collation sort when using UpperFirst #16

Open
robinp opened this issue Jul 29, 2015 · 0 comments
Open

Surprising collation sort when using UpperFirst #16

robinp opened this issue Jul 29, 2015 · 0 comments

Comments

@robinp
Copy link

robinp commented Jul 29, 2015

I would expect that specifying UpperFirst would sort the capital before the lower, regardless of the following character. Do you have any insight?

:set -XOverloadedStrings
import qualified Data.Text.ICU as ICU
import qualified Data.Text.ICU.Collate as I
ICU.collate (ICU.collatorWith (ICU.Locale "de_DE") [I.CaseFirst (Just I.UpperFirst)]) "muller" "Müller"
-- LT
ICU.collate (ICU.collatorWith (ICU.Locale "de_DE") [I.CaseFirst (Just I.UpperFirst)]) "muller" "Muller"
-- GT
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

No branches or pull requests

1 participant