[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

Re: SQR Verison



        I'm not sure what Sam means when he says that you cannot sort an
array as far as I know there are a variety of ways to sort an array. In the
long run you would be better off spending some time writing a heap sort,
merge sort, or selection sort. These algorithms have a worst case time
complexity of nLogn whereas bubble sort has an every case time complexity of
n^2 (n squared). However, a bubble sort is easy to write and I suspect that
with SQR arrays it will much, much easier to write. I suspect that Ray Ontko
and Tony DeLia (sorry if I spelled that wrong) may have some sorting
procedures available on their sites. These guys are the masters and even if
you can't use one of their algorithms you might get some ideas from them.

Good Luck,
Dan

        -----Original Message-----
        From:   Sam Spritzer [SMTP:SSpritzer@GW.CTG.COM]
        Sent:   Friday, March 31, 2000 1:36 PM
        To:     SQR-USERS@list.iex.net
        Subject:        Re: SQR Verison

        Generally speaking, you cannot sort an array but you can do a
"bubble sort".  Check out www.sqrtools.com.  It really goes in depth about
sorting arrays.
        HTH,
        Sam
        >>> <paresh.j.patel@BELLATLANTIC.COM> 03/31 12:59 PM >>>
        I am working on an SQR report in which I need to use an array.  Is
there a way
        to sort the array by multiple [character] fields?  Is so, can anyone
provide me
        an example?  Any help would be greatly appreciated.  Thank you.

        SQR Version:  SQR/4.2.3/PC/Windows NT 4.0/ODBC Level1/Apr 22 1998

        ===============================================================
        "In the beginning, there was something which exploded...yet, they
find nothing."

        Sam Spritzer
        sam.spritzer@ctg.com
        www.ctg.com

        Please see my personal web page at
        home.adelphia.net/~spritzer/aboutme.html
        for important information about contacting me.