Project JEDI - Issue Tracker
Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004274 [JEDI VCL] 00 JVCL Components major always 2007-10-24 05:58 2007-10-31 05:07
Reporter ddsdave View Status public  
Assigned To AHUser
Priority normal Resolution fixed  
Status resolved   Product Version 3.30
Summary 0004274: Bug in implementation of sort in TJvStringGrid.SortGridByCols
Description The 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;
Tags No tags attached.
Attached Files

- Relationships

-  Notes
(0014010)
AHUser (developer)
2007-10-31 05:06

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


Mantis 1.1.6[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker