Opened 18 years ago

Last modified 18 years ago

#1497 closed Patch

Arraysort in DirTreeCtrl

Reported by: cole945 Owned by:
Priority: normal Component: FileZilla Client
Keywords: Cc: cole945, Tim Kosse
Component version: Operating system type:
Operating system version:


Both quicksort and insertsort work incorrectly :X
Quicksort sorts [1,5,7,6,3,2,4] into [1,2,3,6,]4[5,7].
I have re-written it :p

And the sorting result in FileZilla is kind of
different in Windows Explorer with some Chinese words.
I think it may be the problem of CollateNoCase(), but I
don't know how to solve it :(

Attachments (1)

DirTreeCtrl.cpp.2224a.diff (1.4 KB ) - added by cole945 18 years ago.
patch of arraysort

Download all attachments as: .zip

Change History (2)

by cole945, 18 years ago

Attachment: DirTreeCtrl.cpp.2224a.diff added

patch of arraysort

comment:1 by Tim Kosse, 18 years ago

Thanks for the fix, applied to CVS.

About the CollateNoCase problem: I've noticed it myself. The
wide and narrow character functions behave differently for
some reason and I haven't yet found a solution myself.

Note: See TracTickets for help on using tickets.