Opened 13 years ago

Last modified 13 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:

Description

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 13 years ago.
patch of arraysort

Download all attachments as: .zip

Change History (2)

Changed 13 years ago by cole945

Attachment: DirTreeCtrl.cpp.2224a.diff added

patch of arraysort

comment:1 Changed 13 years ago by Tim Kosse

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.