Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions Source/JsonDataObjects.pas
Original file line number Diff line number Diff line change
Expand Up @@ -5941,7 +5941,8 @@ function TJsonObject.CompareSortedName(SortIndex1, SortIndex2: Integer): Integer

Result := Length(P1^) - Length(P2^);
if Result = 0 then
Result := CompareStr(P1^, P2^);
//Result := CompareStr(P1^, P2^);
Result := CompareText(P1^, P2^);
end;

procedure TJsonObject.QuickSortNames(L, R: Integer);
Expand Down Expand Up @@ -6009,7 +6010,8 @@ function TJsonObject.InternIndexOfSortedName(const Name: string): Integer;
I := (Result + H) shr 1;
C := Length(FNames[FSortedNames[I]]) - NameLen;
if C = 0 then
C := CompareStr(FNames[FSortedNames[I]], Name);
C := CompareText(FNames[FSortedNames[I]], Name);
//C := CompareStr(FNames[FSortedNames[I]], Name);
if C < 0 then
Result := I + 1
else
Expand Down Expand Up @@ -6041,7 +6043,8 @@ function TJsonObject.InternFindSortedNameInsertIndex(NameIndex: Integer): Intege
I := (Result + H) shr 1;
C := Length(FNames[FSortedNames[I]]) - NameLen;
if C = 0 then
C := CompareStr(FNames[FSortedNames[I]], FNames[NameIndex]);
//C := CompareStr(FNames[FSortedNames[I]], FNames[NameIndex]);
C := CompareText(FNames[FSortedNames[I]], FNames[NameIndex]);
if C < 0 then
Result := I + 1
else
Expand Down