View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0004274 | JEDI VCL | 00 JVCL Components | public | 2007-10-24 05:58 | 2007-10-31 05:07 |
| Reporter | ddsdave | Assigned To | AHUser | ||
| Priority | normal | Severity | major | Reproducibility | always |
| Status | resolved | Resolution | fixed | ||
| Product Version | 3.30 | ||||
| Target Version | Fixed in Version | 3.34 | |||
| 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. | ||||
| 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 |