On Wed, May 1, 2019 at 7:29 PM brad summerquist <[email protected]> wrote: > > I'm using gvim 8.1.1 on windows 10 without a profile ("gvim -u NONE"). > > I'm running the ":sort" command on the following lines: > > a > z > B > b > > :sort is giving me this => > > B > a > b > z > > I'd expect the lowercase 'a' to be sorted before the uppercase 'B', like so => > > a > B > b > z > > Is this expected behavior? Is there anything I can set to make sort behave > the way I want it to?
This is expected behavoiur in the C locale (i.e. when $COLLATE is C). IIRC there is also an option to have sorting work according to the character code but I cannot find it back. In both cases all uppercase comes before all lowercase because Z = 0x5A comes before a = 0x60. OTOH in most "national" locales (let's say if $COLLATE is en_US, fr_BE, de_CH, whatever) A and a sort together, then B and b together, etc., provider that you don't require Vim (by means of that option which I couldn't find back) to sort by character value. Best regards, Tony. -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
