[pan: 6/16] Change the sort to a stable sort




commit 7a0d4a3a12f186cc8f02181e4301d0095378f9d0
Author: Thomas Tanner <thosrtanner googlemail com>
Date:   Sat Apr 9 20:50:26 2022 +0100

    Change the sort to a stable sort
    
    This means you won't get a random selection at startup when you have a newsgroup called 'Sent' or 
'Drafts'...

 pan/gui/group-pane.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/pan/gui/group-pane.cc b/pan/gui/group-pane.cc
index e4ac62e..952b513 100644
--- a/pan/gui/group-pane.cc
+++ b/pan/gui/group-pane.cc
@@ -439,7 +439,7 @@ namespace
         expandme.push_back (store->get_iter (row));
     }
 
-    setme_rows.sort ();
+    std::stable_sort (setme_rows.begin(), setme_rows.end());
     return store;
   }
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]