View Issue Details

IDProjectCategoryView StatusLast Update
0004274JEDI VCL00 JVCL Componentspublic2007-10-31 05:07
ReporterddsdaveAssigned ToAHUser 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.30 
Target VersionFixed in Version3.34 
Summary0004274: Bug in implementation of sort in TJvStringGrid.SortGridByCols
DescriptionThe code is wrong, and would cause at least 1000 unnecessary iterations of the comparison loop. Really, it could do with being changed from a bubble sort to a quick sort or similar. A fixed (bubble sort) implementation follows.
Additional Information  // Sort fixed by DR Oct 07.
  repeat
    Sorted := True;
    for I := FirstRow to RowCount - 2 do
      if Sort(I, I + 1) > 0 then
      begin
        MoveRow(I + 1, I);
        Sorted := False;
      end;
  until Sorted;
TagsNo tags attached.

Activities

AHUser

2007-10-31 05:06

developer   ~0014010

Fixed in SVN

Issue History

Date Modified Username Field Change
2007-10-24 05:58 ddsdave New Issue
2007-10-31 05:06 AHUser Status new => resolved
2007-10-31 05:06 AHUser Fixed in Version => Daily / SVN
2007-10-31 05:06 AHUser Resolution open => fixed
2007-10-31 05:06 AHUser Assigned To => AHUser
2007-10-31 05:06 AHUser Note Added: 0014010