Karl Blessing
Programmer
I have an Array that is 3 columns wide (and however many rows) each have a HeadID, URL, Section<br><br>I want to sort the Array First by HeadID then by Section, for example I have this...<br><br><FONT FACE=monospace><br>3-2 ¦ Some URL ¦ 1<br>3-7 ¦ Some URL ¦ 1<br>4-13 ¦ Some URL ¦ 1<br>3-2 ¦ Some URL ¦ 2<br>3-7 ¦ Some URL ¦ 2<br>4-13 ¦ Some URL ¦ 2<br>3-2 ¦ Some URL ¦ 3<br>3-7 ¦ Some URL ¦ 3<br>4-13 ¦ Some URL ¦ 3<br></font><br><br>I want to turn it into this<br><br><FONT FACE=monospace><br>3-2 ¦ Some URL ¦ 1<br>3-2 ¦ Some URL ¦ 2<br>3-2 ¦ Some URL ¦ 3<br>3-7 ¦ Some URL ¦ 1<br>3-7 ¦ Some URL ¦ 2<br>3-7 ¦ Some URL ¦ 3<br>4-13 ¦ Some URL ¦ 1<br>4-13 ¦ Some URL ¦ 2<br>4-13 ¦ Some URL ¦ 3<br></font><br><br>Originally, since I had only one number at the head ID (the URL table has a single number for it's reference) it would go in proper order, but now since multiple rows may have same first number, I end up getting first page of every head , then second, then third, instead of 1 2 3 of that specific head, so I need to figure out how to sort it in that two ways, first by Head, then by Section. <p>Karl<br><a href=mailto:kb244@kb244.8m.com>kb244@kb244.8m.com</a><br><a href= </a><br>Experienced in : C++(both VC++ and Borland),VB1(dos) thru VB6, Delphi 3 pro, HTML, Visual InterDev 6(ASP(WebProgramming/Vbscript)<br>