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)