diff --git a/GpApp/StringUtils.cpp b/GpApp/StringUtils.cpp index 3a22c7c..7ceed20 100644 --- a/GpApp/StringUtils.cpp +++ b/GpApp/StringUtils.cpp @@ -70,9 +70,9 @@ short WhichStringFirst (StringPtr p1, StringPtr p2) { if (!foundIt) { - if (p1[0] < p2[0]) // shortest string wins + if (p1[0] > p2[0]) // shortest string wins greater = 1; - else if (p1[0] > p2[0]) + else if (p1[0] < p2[0]) greater = 2; } foundIt = true;