Menu

Sort Column

Alan Stout
2009-07-12
2012-11-13
  • Alan Stout

    Alan Stout - 2009-07-12

    How do I sort a column?

    Thanks

     
    • Lance Rose

      Lance Rose - 2009-07-24

      Is there a way to sort multiple column sets?

       
    • cchris

      cchris - 2009-07-25

      It depends on what sorts of sets.

      If you mmean sorting on a group of columns, like col. 1-15, then yes, just select the rectangle based on them.

      If you mean several groups of consecutive columns, then you can do it by sorting on the ineer key first, then the key above and so forth. So, to sort by group 1, then by goup 2, then by group3, you should first sort according to group3, then to group2, then to group1.

      Sorting on the aggregate value of disconnected sets of columns is just a special case of the above.

      CChris

       
    • cchris

      cchris - 2009-07-13

      Select the column as a rectangle, then use TextFX sort functions. This will sort the lines according to the column.

      If you want to only sort the column, copy it, paste it on a new document, sort it, then use TextFX Paste and Replace function to overwrite the old column.

      CChris

       
      • Alan Stout

        Alan Stout - 2009-07-14

        cchris
        Thanks-I just need to know how to select the text  as a rectangle.

        Alan

         
    • cchris

      cchris - 2009-07-15

      Alt-click on a corner of desired selection, and then drag mouse to the other corner, while Alt is being depressed.

      You can further use Alt+Shift+arrows or other to modify such a rectangle. You can even start from no selection at al with this method.

      Some more tricks in http://sourceforge.net/apps/mediawiki/notepad-plus/index.php?title=Moving_And_Selecting_Around

      CChris

       
  • Anonymous

    Anonymous - 2010-04-27

    Ditto.  I wish someone could explain how to sort a file using some other column other than 1.

     
  • cchris

    cchris - 2010-04-28

    Make a rectangular selecion covering the area to use as a sort key. Like column 12-20, extended to the whole file if you wish.
    Then select your options on the TextFX -> TextFX Settings, and then from the same menu Sort.

    CChris

     
MongoDB Logo MongoDB