mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-19 13:21:46 +02:00
Opkman: Fixed a small sorting bug in the main tree.
git-svn-id: trunk@55090 -
This commit is contained in:
parent
77b9c644a0
commit
0a06e5079d
@ -1327,7 +1327,12 @@ begin
|
||||
case Column of
|
||||
0: begin
|
||||
if (Data1^.DataType = 1) and (Data1^.DataType = 1) then
|
||||
Result := CompareText(Data1^.PackageName, Data2^.PackageName);
|
||||
begin
|
||||
if (Trim(Data1^.PackageDisplayName) <> '') and (Trim(Data2^.PackageDisplayName) <> '') then
|
||||
Result := CompareText(Data1^.PackageDisplayName, Data2^.PackageDisplayName)
|
||||
else
|
||||
Result := CompareText(Data1^.PackageName, Data2^.PackageName);
|
||||
end;
|
||||
if (Data1^.DataType < Data2^.DataType) then
|
||||
Result := 0
|
||||
else if (Data1^.DataType > Data2^.DataType) then
|
||||
|
Loading…
Reference in New Issue
Block a user