Make use of qsort_arg in several places that were formerly using klugy

Tom Lane <tgl@sss.pgh.pa.us>

Commit: e378f82e0029a7a6fda9c655bd79d4404e566c0b
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2006-10-05T17:57:40Z
Releases: 8.2.0
Make use of qsort_arg in several places that were formerly using klugy
static variables.  This avoids any risk of potential non-reentrancy,
and in particular offers a much cleaner workaround for the Intel compiler
bug that was affecting ginutil.c.

Files