• Login
Community
  • Login

Sorting data

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
6 Posts 4 Posters 83.2k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K
    Keir
    last edited by Aug 23, 2020, 10:01 PM

    Is there a way to automatically sort text as integers descending everytime new data is added, or do I have to do it manually?

    T 1 Reply Last reply Aug 23, 2020, 11:24 PM Reply Quote 0
    • T
      Terry R @Keir
      last edited by Aug 23, 2020, 11:24 PM

      @Keir said in Sorting data:

      Is there a way to automatically sort text as integers descending everytime new data is added, or do I have to do it manually?

      There isn’t an auto sort setting in Notepad++ as far as I know. However you can easily set up a shortcut (2 keys minimum) to activate a sort as and when required. Alternatively you could generate a macro which could sort and also perform other steps if you needed other functions performed at the same time.
      If you looked at plugins you could likely build some automation into the sorting, but that might entail learning a new language, such as PythonScript. Check out the Plugins on offer, maybe one of those might help you. Go to
      https://notepad-plus-plus.org/resources/
      and the plugins are linked from there.

      I personally think setting a shortcut to the sort (of your choice) is the way to go. Select from the “Settings” menu, “Shortcut Mapper” and scroll down until you see the sorting options. on mine they are numbered 46-53. Provide a 2 keystroke option (3 or 4 keys also an option) to setup the shortcut and you’re done. When needed, execute that 2 key shortcut and it will perform the requested sort.

      Terry

      K A 2 Replies Last reply Aug 23, 2020, 11:35 PM Reply Quote 3
      • K
        Keir @Terry R
        last edited by Aug 23, 2020, 11:35 PM

        @Terry-R Thankyou, I need to sort data numerically for a leaderboard. I will try your advice.

        1 Reply Last reply Reply Quote 0
        • A
          Alan Kilborn @Terry R
          last edited by Aug 24, 2020, 9:46 PM

          @Terry-R said in Sorting data:

          you can easily set up a shortcut (2 keys minimum)

          Nitpick: Why are 2 keys the minimum? What about just assigning it to F1 as a one-key example? :-)

          1 Reply Last reply Reply Quote 0
          • T
            Terry R
            last edited by Aug 24, 2020, 10:07 PM

            @Alan-Kilborn said in Sorting data:

            Why are 2 keys the minimum?

            I steer clear of creating 1 key shortcuts. You never know when something else will want that “officially” and then you’re out in the cold and having to remember a different hot key. Also it’s a lot harder to hit the 2 keys together by mistake, when a 1 key miss hit could have severe consequences.

            Terry

            1 Reply Last reply Reply Quote 2
            • M
              Makwana Prahlad Banned
              last edited by Aug 26, 2020, 6:41 AM

              Hello,@Keir
              Please follow this step,To sorting data.

              Step 1: First to select Edit menu than select Line operation.
              Step 2: After select Sort Lines Lexicographically ascending.

              I hope this information will be useful.
              Thank you.

              1 Reply Last reply Reply Quote 1
              3 out of 6
              • First post
                3/6
                Last post
              The Community of users of the Notepad++ text editor.
              Powered by NodeBB | Contributors