-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Support numeric aware sorting on Windows and macOS #8363
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #8363 +/- ##
===========================================
- Coverage 64.67% 64.43% -0.24%
===========================================
Files 338 339 +1
Lines 43623 43740 +117
===========================================
- Hits 28212 28182 -30
- Misses 15411 15558 +147
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What speaks against using QCollator?
Nevermind, despite the documentation it is absolutely worthless, unless we use icu on Linux. https://code.woboq.org/qt5/qtbase/src/corelib/text/qcollator_posix.cpp.html#58 |
You would still get rid of the Windows and macOS boilerplate code. |
Yah sorry I meant to come back to this one. |
* Fix #8356 - Qt does not enable numeric aware sorting when using locale sort. Extracted both Windows and macOS locale aware sorting code and added the appropriate numeric aware flag. Note: There is no std library way to do this so Linux is out of luck for now.
6d2f407
to
c189573
Compare
ready for you |
Note: There is no std library way to do this so Linux is out of luck for now.
Screenshots
Testing strategy
Tested and mac and windows
Type of change