string compare equivalent of lsort -dictionary
Open667ec8ff04ac1d444a2d787c5898a8734d31e0b3Created 8 years agoUpdated 7 years ago
Descriptionplain2019-01-28 17:49:50
Hello, it would be nice to get the command used by `lsort -dictionary` as a standalone proc, in order to compose more complicated comparison procs (for lsort -command) and to improve consistency. I'd say that `string compare -dictionary` would be the best target for this.
hadrienplain2019-08-24 19:33:18
I've read a bit the source code, and just plugging DictionaryCompare into TclStringCmp shouldn't be too hard (for someone who knows the codebase). This is really lacking, I think; forcing the user to use an unsightly hack around `lsort -dictionary`.
Log in (anonymous is fine) to add a comment.