Don't sort tree views/widgets unless sorting is enabled
If sorting isn't enabled for a tree view/widget then it must not be
sorted when restoring the column layout for the first time.
This unwanted initial sorting messed up the order of the card slots in
the new card keys view when a card of a some type was displayed for the
first time.
(cherry picked from commit 9b4d36c0666cb56bb91f520601c98cf8255a7406)
- GnuPG-bug-id: T7018