Skip to content
Prev 285889 / 398502 Next

Sorting strings

On 20-Feb-2012 Petr Savicky wrote:
I've been following this thread with interest. I had begun composing
a reply on similar lines to Petr's above, but put it on one side
while waiting to see how the thread would evolve.

In view of the tangle of mixed experiences reported by different
users, I now wonder whether we should have something like "lc_collate"
as a specific parameter for sort(), e.g. so that one can set, for a
particular sorting operation,

   sort(c("X.","X0B"),lc_collate="C")

without affecting the system "LC_COLLATE" setting (i.e. the change
takes effect only within the execution of that sort() command).

Ted.

-------------------------------------------------
E-Mail: (Ted Harding) <Ted.Harding at wlandres.net>
Date: 20-Feb-2012  Time: 17:16:47
This message was sent by XFMail