From: Johannes Schindelin Date: Thu, 19 Mar 2009 10:36:50 GMT Subject: Re: t5505-remote fails on Windows Message-ID: In-Reply-To: <20090319044313.GA341@coredump.intra.peff.net> Hi, On Thu, 19 Mar 2009, Jeff King wrote: > @@ -163,9 +163,15 @@ static int cmp_items(const void *a, const void *b) > return strcmp(one->string, two->string); > } > > +void sort_string_list_with_fn(struct string_list *list, > + int (*fn)(const void *, const void *)) > +{ > + qsort(list->items, list->nr, sizeof(*list->items), fn); > +} > + Do we really want an API for that? Calling qsort() directly should be obvious enough, no? Ciao, Dscho