(cherry picked from commit 62277eb914792c1b945ac923d587eeab4f8f1b70) Source commit: 7f88b316a2e9e6062a07a66f112c2679eb460213
@@ -675,6 +675,9 @@ begin
Result := StrCmpLogicalW(PChar(S1), PChar(S2))
else
Result := lstrcmpi(PChar(S1), PChar(S2));
+ // For deterministics results
+ if Result = 0 then
+ Result := lstrcmp(PChar(S1), PChar(S2));
end;
{ Shortcut-handling }