sorting?

2005-07-09
2012-11-13
  • Hello,

    I was wondering if I can sort text lines in NP++.
    Anyway, a great program.

    Antonio

     
    • i have the same problem, i cant sort the lines !

       
    • Don HO
      Don HO
      2005-07-29

      Line sorting is not a build-in feature.
      However it could be done by a plugin - if there's someone who is interested in implementing it.

      Don

       
    • Atomhrt
      Atomhrt
      2005-07-31

      You could do it by creating a batch file like this:
      sort "%1" > %temp%\npptemp
      copy /y %temp%\npptemp "%1"

      Assuming the batch file was c:\npp\sortit.cmd,
      in the Run... dialog you would enter:
      c:\npp\sortit.cmd  "$(FULL_CURRENT_PATH)"

      This assumes that you have sort.exe in your path. It comes with w2k and XP, by default, I'm pretty sure.