Path: utzoo!censor!becker!geac!jtsv16!uunet!aplcen!uakari.primate.wisc.edu!caesar.cs.montana.edu!ogccse!blake!jimmy From: jimmy@blake.acs.washington.edu (Jim Li) Newsgroups: comp.lang.c Subject: sorting strings Keywords: sort, string Message-ID: <4496@blake.acs.washington.edu> Date: 17 Nov 89 07:53:33 GMT Distribution: usa Organization: Univ of Washington, Seattle Lines: 13 I want to sort 10000 records, each of 80 bytes long, in ascending order. I put all the records in 'record' which was defined as follows: char *record[10000]; What sorting algorithm shoud I use? Should I use the built-in 'qsort()'? How about mergesort and heapsort? (I want my program to run as FAST as possible!) Thanks plenty. Jim. .