From f4fedb936eae60e7b9847339080cfd2604d4cd82 Mon Sep 17 00:00:00 2001 From: Alexander Shaposhnikov Date: Fri, 9 Feb 2018 00:53:31 +0200 Subject: [PATCH] [RAPPS] Fix column sorting CORE-13793 --- base/applications/rapps/gui.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/base/applications/rapps/gui.cpp b/base/applications/rapps/gui.cpp index c4e76b35d3e..ed2c3b82649 100644 --- a/base/applications/rapps/gui.cpp +++ b/base/applications/rapps/gui.cpp @@ -539,12 +539,7 @@ public: GetItemText(Index, iSubItem, Item2.GetBuffer(MAX_STR_LEN), MAX_STR_LEN); Item2.ReleaseBuffer(); - if (bIsAscending) - return Item2 == Item1; - else - return Item1 == Item2; - - return 0; + return bIsAscending ? Item1.Compare(Item2) : Item2.Compare(Item1); } HWND Create(HWND hwndParent) -- 2.17.1