Artifacts Associated With Ticket 47e365d639909998
Ticket change [a30f31a72b] (rid 137567) by anonymous on 2014-04-11 01:25:37:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
LSORT -DICTIONARY does NOT honour number sign chirality. % lsort -real -dict -inc [list 5 -7 53 54 55 50 51 -10 -9] -7 -9 -10 5 50 51 53 54 55 The negative numbers are ASCII sorted with the "-" in front, then rest of the chars (the digits) are sorted based on -increasing/-decreasing as if they were absolute values (the "-" applies as ASCII text NOT as part of the number). The -REAL flag works, but, the effect is negated with -DICTIONARY is used with it. (-real should override -dictionary in this case). This has been tested with TCL versions 8.5.11 and 8.6.1.
- foundin initialized to: "8.5.11, 8.6.1"
- is_private initialized to: "0"
- login: "anonymous"
- priority initialized to: "5 Medium"
- private_contact initialized to: "f30ff1c28814b93e5b55bf4557b5c79f445ee324"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "anonymous"
- subsystem initialized to: "17. Commands I-L"
- title initialized to:
LSORT -DICTIONARY does not honour number sign chirality
- type initialized to: "Bug"
Ticket change [ca5d25a627] (rid 137580) by dkf on 2014-04-11 14:51:51:
- closedate changed to: "2456759.11934426"
- closer changed to: "dkf"
- icomment:
The <tt>-dictionary</tt> option is working as designed; it only number-sorts digit sequences, and a “<tt>-</tt>” is sorted using the letter rule. For cases with mixed numbers and letters (including things like “<tt>X-123-ABC-789</tt>” which are the sorts of things that we've got to hope with) everything is correct. Yes, this means that you can't get numeric sorting in all cases. <p> Mixing <tt>-real</tt> with <tt>-dictionary</tt> is not recommended at all, but the <i>last</i> one used will take precedence.
- login: "dkf"
- mimetype: "text/html"
- resolution changed to: "Rejected"
- status changed to: "Closed"
- username: "dkf"