Board index » delphi » sort algorithm trouble...
C Bauman
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
sort algorithm trouble...QuoteRobert III Lockhart wrote in message <37708FA5.945E8...@worldnet.att.net>... the 'SortFile' procedure: To get the sort to work, you have to modify the 'next' (pointer) *field* of the records, not only for the 'current' and 'next' records, but also the 'previous' record pointer or the 'first' record pointer if the record to be swapped is the first record. I've also noticed that you aren't saving the result of the sort afterwards. That, of course, can be added later. hope that's enough of a hint, |