I suggest you ...

Support "natural sorting" / SORT_DIGITSASNUMBERS via CompareOptions

The C++ function, CompareStringEx ( https://msdn.microsoft.com/en-us/library/windows/desktop/dd317761.aspx ) has a dwCmpFlags option for SORT_DIGITSASNUMBERS: Treat digits as numbers during sorting, for example, sort "2" before "10".

This option should be exposed as a member of the CompareOptions Enumeration ( https://msdn.microsoft.com/en-us/library/system.globalization.compareoptions.aspx ) so that it can be used in managed code instead of needing to do a DllImport of Kernel32.DLL which requires UNSAFE / Full Trust.

4 votes
Vote
Sign in
(thinking…)
Password icon
Signed in as (Sign out)
You have left! (?) (thinking…)
Solomon Rutzky shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

0 comments

Sign in
(thinking…)
Password icon
Signed in as (Sign out)
Submitting...

Feedback and Knowledge Base