[RAPPS] Fix column sorting
authorAlexander Shaposhnikov <sanchaez@reactos.org>
Thu, 8 Feb 2018 22:53:31 +0000 (00:53 +0200)
committerAlexander Shaposhnikov <sanchaez@reactos.org>
Thu, 8 Feb 2018 22:53:31 +0000 (00:53 +0200)
CORE-13793

base/applications/rapps/gui.cpp

index c4e76b3..ed2c3b8 100644 (file)
@@ -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)