sorting - actual code

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm working on a small project for a poker playing friend that requeries me
to sort small arrays of cards. Unfortunatly, Accesss has made this function
just too easy and I have forgotton how to write any form of sort code ( even
a simple bubble sort!!). A bit of help would be much appreciated from someone
less forgetfull than I.
Thanks,
Bart
 
Hi, Bart.

If you want to avoid using a temporary table for sorting the cards, then try
the QuickSort algorithm for a single dimension array, since it's generally
the most efficient of the sorting algorithms:

http://vbnet.mvps.org/index.html?code/sort/qsoverview.htm

HTH.
Gunny

See http://www.QBuilt.com for all your database needs.
See http://www.Access.QBuilt.com for Microsoft Access tips.

(Please remove ZERO_SPAM from my reply E-mail address so that a message will
be forwarded to me.)
- - -
If my answer has helped you, please sign in and answer yes to the question
"Did this post answer your question?" at the bottom of the message, which
adds your question and the answers to the database of answers. Remember that
questions answered the quickest are often from those who have a history of
rewarding the contributors who have taken the time to answer questions
correctly.
 
Back
Top