Skip to content
Tcl Source Code History Of Ticket 47e365d639909998
Login

History Of Ticket 47e365d639909998

Artifacts Associated With Ticket 47e365d639909998

  1. Ticket change [a30f31a72b] (rid 137567) by anonymous on 2014-04-11 01:25:37:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. 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.
      
    5. foundin initialized to: "8.5.11, 8.6.1"
    6. is_private initialized to: "0"
    7. login: "anonymous"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "f30ff1c28814b93e5b55bf4557b5c79f445ee324"
    10. resolution initialized to: "None"
    11. severity initialized to: "Minor"
    12. status initialized to: "Open"
    13. submitter initialized to: "anonymous"
    14. subsystem initialized to: "17. Commands I-L"
    15. title initialized to:
      LSORT -DICTIONARY does not honour number sign chirality
      
    16. type initialized to: "Bug"
  2. Ticket change [ca5d25a627] (rid 137580) by dkf on 2014-04-11 14:51:51:

    1. closedate changed to: "2456759.11934426"
    2. closer changed to: "dkf"
    3. 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.
      
    4. login: "dkf"
    5. mimetype: "text/html"
    6. resolution changed to: "Rejected"
    7. status changed to: "Closed"
    8. username: "dkf"