how to set default sort order for document list



  • I would like the document list to always be sorted by name.
    As it is I have to click the header every time I open notepad++.
    Is there a setting or a plugin that keeps the document list sorted?



  • @Clyfton-In ,

    As of now, there is no setting to save the sort order from the Document List panel.

    Based on my experiments, it sorts by tab-order by default. So if you keep your tabs sorted, then the Document List panel will be in the order you want.

    With more recent Notepad++ versions, the Windows menu’s Windows… action will bring up a dialog which has a Sort tabs button. When you run that command, your tabs will sort alphabetically (one time; if you open new files, they are not auto-sorted unless you hit the button again), and the Document List will update its unsorted-order to match the current tab order. (With older versions of Notepad++, there wasn’t such a feature, so an intrepid forum regular published an “auto-sort tabs (real-time)” that works with the PythonScript plugin. So if your version of Notepad++ doesn’t have the Sort tabs button, then either upgrade or you can use the PythonScript solution.)

    If that’s not sufficient for you, you are allowed to make an official feature request, as described in our FAQ.



  • @PeterJones said in how to set default sort order for document list:

    With older versions of Notepad++, there wasn’t such a feature

    I just went back as far as v7.6.3 from 2019, and it still had the feature. Apparently, I had just forgotten it had been there for years.

    So I will rephrase:

    1. If you are willing to do it manually, Windows > Windows… > Sort tabs will sort the tabs, which also updates the order in the Document List panel
    2. If you want to sort tabs live, use the PythonScript plugin and the script I linked to
    3. If you really want Notepad++ to remember the Document List panel sort order separately from the tab order, then read the FAQ and follow those instructions to make an official Feature Request that will be tracked


  • @PeterJones Your TAB SORT suggestion will do nicely. Thanks!


Log in to reply