From eb2ccd96a1e5a6d1f37f89e71c869b67c0681eae Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Sat, 24 Jun 2017 18:17:01 +0200 Subject: [PATCH] CGitStatusListCtrl: Use stable sort Signed-off-by: Sven Strickroth --- src/Git/GitStatusListCtrl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Git/GitStatusListCtrl.cpp b/src/Git/GitStatusListCtrl.cpp index dfe7cb56c..fad49cf6c 100644 --- a/src/Git/GitStatusListCtrl.cpp +++ b/src/Git/GitStatusListCtrl.cpp @@ -621,7 +621,7 @@ void CGitStatusListCtrl::Show(unsigned int dwShow, unsigned int dwCheck /*=0*/, if (m_nSortedColumn >= 0) { CSorter predicate (&m_ColumnManager, m_nSortedColumn, m_bAscending); - std::sort(m_arStatusArray.begin(), m_arStatusArray.end(), predicate); + std::stable_sort(m_arStatusArray.begin(), m_arStatusArray.end(), predicate); } int index =0; -- 2.11.4.GIT