- 1: Result := CompareInt(ThreadItem1.AllResCount, ThreadItem2.AllResCount);
- 2: Result := CompareInt(ThreadItem1.Count, ThreadItem2.Count);
- 3: Result := CompareInt(ThreadItem1.NewResCount, ThreadItem2.NewResCount);
- 4: Result := 0;
- 5: Result := AnsiCompareText(ThreadItem1.RoundName, ThreadItem2.RoundName);
- 6: Result := CompareDate(ThreadItem1.LastModified, ThreadItem2.LastModified);
+
+ gbcAllCount: Result := CompareInt(ThreadItem1.AllResCount, ThreadItem2.AllResCount);
+ gbcLocalCount: Result := CompareInt(ThreadItem1.Count, ThreadItem2.Count);
+ gbcNonAcqCount:
+ begin
+ if ThreadItem1.IsLogFile and ThreadItem2.IsLogFile then
+ Result := CompareInt(ThreadItem1.AllResCount - ThreadItem1.Count, ThreadItem2.AllResCount - ThreadItem2.Count)
+ else if ThreadItem1.IsLogFile then
+ Result := 1
+ else if ThreadItem2.IsLogFile then
+ Result := -1
+ else
+ Result := 0;
+ end;
+
+ gbcNewCount: Result := CompareInt(ThreadItem1.NewResCount, ThreadItem2.NewResCount);
+ gbcUnReadCount: Result := 0;
+ gbcRoundName: Result := AnsiCompareText(ThreadItem1.RoundName, ThreadItem2.RoundName);
+ gbcRoundDate: Result := CompareDateTime(ThreadItem1.RoundDate, ThreadItem2.RoundDate); {gbcLastModified:}
+ gbcCreated: Result := CompareDateTime(ThreadItem1.CreateDate, ThreadItem2.CreateDate);
+ gbcLastModified: Result := CompareDateTime(ThreadItem1.LastModified, ThreadItem2.LastModified); {gbcLastModified:}
+ gbcVigor: Result := CompareValue(CaclVigor(ThreadItem1), CaclVigor(ThreadItem2));
+ else
+ Result := 0;