Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Chip,
I don't know if you have the notify box checked on this board, but I've sent you an email @ your site some possible bugs in the QSort I downloaded from your site, and yes I have read your page regarding mails to you. There's another one on the way in about an hour. This reply is being written at Thur Mar 18, 2010 2:20pm East coast time. Best, -- Neal Z "Chip Pearson" wrote: I have an implementation of QSort on my web site at http://www.cpearson.com/Excel/QSort.htm . You can download the module at http://www.cpearson.com/zips/modQSortInPlace.zip . It handles both case sensitive and case insensitive sorts in either ascending or descending order. QSort is much faster than a bubble sort. The code can handle sorting both strings and numerics and it can handle sorting only a subset of an array. You would call QSortInPlace with code like Sub AAA() Dim Arr(1 To 5) As String Dim N As Long Arr(1) = "z" Arr(2) = "A" Arr(3) = "a" Arr(4) = "Z" Arr(5) = "m" QSortInPlace InputArray:=Arr, CompareMode:=vbBinaryCompare For N = 1 To 5 Debug.Print Arr(N) Next N End Sub Cordially, Chip Pearson Microsoft Most Valuable Professional, Excel, 1998 - 2010 Pearson Software Consulting, LLC www.cpearson.com On Sun, 14 Mar 2010 17:44:01 -0700, Neal Zimm wrote: Cher Bernard, Merci. Lcase and Ucase do me no good. The sort works fine with option compare text, but I wanted "more". If you need a case sensitive sort, (and I forgot about the ascii collating sequence) what's the best way without writing to a worksheet and sorting there? thanks much. Neal . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
StrComp | Excel Programming | |||
binary sort? | Excel Programming | |||
Sort data failure | Excel Programming | |||
Calling Bubble Sort Function | Excel Programming |