Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!usc!apple!portal!cup.portal.com!ts From: ts@cup.portal.com (Tim W Smith) Newsgroups: comp.sys.mac.programmer Subject: Re: Sorting in C Message-ID: <28758@cup.portal.com> Date: 10 Apr 90 04:55:09 GMT References: <477@fornax.UUCP> <1990Apr2.174907.21597@eplrx7.uucp> Distribution: na Organization: The Portal System (TM) Lines: 7 Just call qsort twice. The first time, use a comparison function that compars some hash value of the numbers rather than the numbers themselves. Then, the second time, use the real comparison function. Tim Smith ps: :-)