QB / QB64 Discussion Forum      Other Subforums, Links and Downloads
 Return to Index  

Sorting by primary, secondary, etc. fields.

January 23 2008 at 10:43 PM
Solitaire  (Login Solitaire1)
S


Response to Technique for sorting parallel arrays

This is an addendum to the above post which shows how to sort using a primary field. If a secondary or tertiary field sort (or more) is needed, the routine needs to be repeated IN REVERSE ORDER. First sort using the least significant field, and finish with the primary key field last.


    
This message has been edited by Solitaire1 on Jan 24, 2008 11:07 AM


 
 Respond to this message   
Responses

Newbies usually go to www.qbasic.com and click on The QBasic Forum
Forum regulars have their own ways, which include The QBasic Community Forums