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

[Clip] Re: sort by name

Expand Messages
  • Claes Gauffin
    Hi Bong, ... If I understand you correctly, you want to sort individual words within a selection. If I understand NoteTab correctly, you can t do that
    Message 1 of 3 , Sep 6, 1999
    • 0 Attachment
      Hi Bong,

      At 19:55 1999-09-05 +0300, you wrote:
      >Does NTP have such powerful functions as ability to sort selected words in
      >alphabetical order?

      If I understand you correctly, you want to sort individual words within a
      selection.
      If I understand NoteTab correctly, you can't do that directly, the sort
      function is line oriented.
      The following clip tries to sneak aound this. It seems to work OK, but you
      should limit your selection to within one line.

      Regards /Claes

      ^!Set %string%=^$GetSelection$
      ^!Set %string%=^$StrReplace(" ";"^p";"^%string%";True;False)$
      ^!Set %string%=^$StrSort("^%string%";False;True;True)$
      ^!Set %string%=^$StrReplace("^p";" ";"^%string%";True;False)$
      ^!InsertText ^%string%
    Your message has been successfully submitted and would be delivered to recipients shortly.