tobold.org

correct • elegant • free

△ Comp.lang.c △

◅ File truncation

Bubble Sort Question ▻

Key Sort

In article <terra.20.000B099B@hookup.net>, Brian West <terra@hookup.net> wrote:
>Does anyone know where I can find a good 'C' multiple key sort, ie sort on a
>primary key field and also a secondary key field ?

Since the standard library routine qsort() requires you to supply your
own comparison routine, it will happily sort on any number of keys.

Tim.
--
Tim Goodwin        | "Once policy-based routing is solved, some new problem
Public IP Exchange | with routing will arise." -- Marshall T Rose

Original headers:

From: tim@pipex.net (Tim Goodwin)
Newsgroups: comp.lang.c
Subject: Re: Key Sort
Date: 11 Jul 1995 17:32:03 +0100
Organization: PIPEX, 216 Science Park, Cambridge, England
Message-ID: <3tu923$nbp@pipe.pipex.net>
References: <terra.20.000B099B@hookup.net>

△ Comp.lang.c △

◅ File truncation

Bubble Sort Question ▻