Loading ...
Sorry, an error occurred while loading the content.

RE Sort values

Expand Messages
  • KitPatH
    Here s a clip from a word processor who approaches these things differently. The clip needs to prompt for the max width of the numbers -- in the example it s 3
    Message 1 of 1 , Mar 11, 2009
    • 0 Attachment
      Here's a clip from a word processor who approaches
      these things differently.

      The clip needs to prompt for the max width of the numbers
      -- in the example it's 3 -- then it can be decreased each step.
      or some other way of reading how many digits we're dealing with.

      clip here -- some numbers to play with below


      H="Indent Flush Right 1st col numbers"
      ^!Jump 1
      ^P
      :SNGL
      ^!Find ^\d\n RS
      ^!IfError GoTo DBL
      ^!Jump -1
      ^!Insert " "
      ^!goto SNGL
      :DBL
      ^!Find "^\d\d\n" RS
      ^!IfError GoTo End
      ^!Jump -1
      ^!Insert " "
      ^!goto DBL
      :end
      ^!Jump 1
      ^!Menu Modify/lines/Sort/Ascending
      ^!Jump 1

      ----
      1
      10
      114
      12
      12
      14
      146
      15
      16
      16
      17
      18
      190
      2
      2
      20
      21
      211
      22
      23
      25
      26
      3
      3
      30
      31
      34
      39
      4
      50
    Your message has been successfully submitted and would be delivered to recipients shortly.