Menu

How to set default sorting for database?

Help
2017-07-21
2017-07-21
  • Raúl Núñez de Arenas Coronado

    Hi!

    I always have my database sorted by "No sort", because I prefer to group entries by hand. The problem is that when I close KeePass and open it again (or after a computer reboot) the sort method is set to "Password".

    I've browsed through the configuration and I cannot find where this default sorting column is defined, to delete it. Of course I checked KeePass.config.xml, and it has this:

        <ListSorting>
            <Column>2</Column>
            <Order>Ascending</Order>
        </ListSorting>
    

    Obviously this is where the sorting is defined, and I bet I can delete this and have what I want, but I don't think editing this XML directly is the way to go, specially because if I (by accident) click on a column header, then this element will be added back to the XML and I'll have to hand-edit it again. There must be something in the configuration to avoid this and I'm missing it.

    ¿Any help or suggestion? Apart from editing the XML, of course ;)
    Thanks a lot!!!!
    Raúl

     
  • Raúl Núñez de Arenas Coronado

    Looks like saving the database after manually choosing Menu->View->Sort By->No Sort, removes that element from the XML. So, my question is, how the heck does it come back again? Because it happens EVERY time I open KeePass...

    Thanks again :)

     
  • T. Bug Reporter

    T. Bug Reporter - 2017-07-21

    Do you have a file named KeePass.config.enforced.xml? If so, try shutting down KeePass, renaming this file, and restarting KeePass. That's the only way I know of for settings to get re-enabled after being disabled.

    (And hand-editing XML isn't so bad; it's how most KeePass.config.enforced.xml files get created. See here what mine looks like. (sourceforge.net))

     

Log in to post a comment.

MongoDB Logo MongoDB