comparison runtime/doc/eval.txt @ 22770:3e4981de5636 v8.2.1933

patch 8.2.1933: cannot sort using locale ordering Commit: https://github.com/vim/vim/commit/55e29611d20bca14fa5efc61385bc8a6b7acd9e2 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Nov 1 13:57:44 2020 +0100 patch 8.2.1933: cannot sort using locale ordering Problem: Cannot sort using locale ordering. Solution: Add a flag for :sort and sort() to use the locale. (Dominique Pell?, closes #7237)
author Bram Moolenaar <Bram@vim.org>
date Sun, 01 Nov 2020 14:00:03 +0100
parents 5b7ea82bc18f
children 8dad79c661d1
comparison
equal deleted inserted replaced
22769:b03c250a83e7 22770:3e4981de5636
9698 current buffer use |:sort|. 9698 current buffer use |:sort|.
9699 9699
9700 When {func} is given and it is '1' or 'i' then case is 9700 When {func} is given and it is '1' or 'i' then case is
9701 ignored. 9701 ignored.
9702 9702
9703 When {func} is given and it is 'l' then the current locale
9704 is used for ordering. See `language collate` to check or set
9705 the locale used for ordering. For example, with "en_US.UTF8",
9706 Ö will be ordered after O and before P, whereas with the
9707 Swedish locale "sv_SE.UTF8", it will be after Z.
9708 Case is typically ignored by the locale.
9709
9703 When {func} is given and it is 'n' then all items will be 9710 When {func} is given and it is 'n' then all items will be
9704 sorted numerical (Implementation detail: This uses the 9711 sorted numerical (Implementation detail: This uses the
9705 strtod() function to parse numbers, Strings, Lists, Dicts and 9712 strtod() function to parse numbers, Strings, Lists, Dicts and
9706 Funcrefs will be considered as being 0). 9713 Funcrefs will be considered as being 0).
9707 9714