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

Re: sort outline topics descending

Expand Messages
  • Sheri
    ... The clip had some missing quotations and commands, which once added, it works to to reverse sort NoteTab s Glossary outline which has over 200 headings.
    Message 1 of 4 , Jun 2, 2008
    • 0 Attachment
      --- In ntb-clips@yahoogroups.com, "Pat(kitPatH)" <kitpath@...> wrote:
      >
      > Morning all.
      > About two years ago, melchoir posted a clip to sort outline
      > topics -- in descending order. The clip works on small outlines.
      > The clip won't work on an outline I have that currently has 84
      > topics (including title heading). Sample of the topics in my
      > outline are below the clip. Is there a way to increase number of
      > lines sorted in this clip? Pat

      The clip had some missing quotations and commands, which once added,
      it works to to reverse sort NoteTab's Glossary outline which has over
      200 headings. Hopefully it doesn't have other issues, I didn't really
      study it.

      ^!sethintinfo works
      ^!setscreenupdate off
      ^!iftrue ^$isoutlinedoc(^##)$ next else skip_2
      ^!set %file%=^##
      ^!goto skip_1
      ^!set %file%="^?{(t=o;f="otl file|*.otl")FILE=^##}"
      ^!close "^%file%" save
      ^!setlistdelimiter ^p
      ^!setarray %text%=^$getfiletext("^%file%")$
      ^!set %text1%=^%empty%
      ^!set %text%=^$strreplace("^p^pH=";"‡†‡";"^%text%";n;n)$
      ^!set %text%=^$strreplace("^p";"ÿ";"^%text%";n;n)$
      ^!set %text%=^$strreplace("‡†‡";"^pH=";"^%text%";n;n)$
      ^!set %text%=^$strsort("^%text%";n;n;n)$
      ^!set %text%=^$strreplace("^p";"^p^p";"^%text%";n;n)$
      ^!set %text%=^$strreplace("ÿ";"^p";"^%text%";n;n)$
      ^!set %text%== V4 Outline MultiLine NoSorting TabWidth=30^%nl%^%nl%^%text%
      ^!set
      %ofile%=^$getpath(^%file%)$^$getname(^%file%)$_resort^$getext(^%file%)$
      ^!texttofile "^%ofile%" ^%text%
      ^!Open "^%file%"
      ^!delay 3
      ^!Open "^%ofile%"
      ;end of clip
    • Pat
      ... Sheri, thank you and your eagle eyes! This works. I m always amazed at how quickly you spot the trouble. pat
      Message 2 of 4 , Jun 3, 2008
      • 0 Attachment
        --- In ntb-clips@yahoogroups.com, "Sheri" <silvermoonwoman@...> wrote:
        > The clip had some missing quotations and commands, which once added,
        > it works to to reverse sort NoteTab's Glossary outline which has over
        > 200 headings. Hopefully it doesn't have other issues, I didn't really
        > study it.

        Sheri, thank you and your eagle eyes! This works.
        I'm always amazed at how quickly you spot the
        trouble.

        pat
      Your message has been successfully submitted and would be delivered to recipients shortly.