src/backend/utils/adt/xid8funcs.c
static void
sort_snapshot(pg_snapshot *snap)
{
	if (snap->nxip > 1)
	{
		qsort(snap->xip, snap->nxip, sizeof(FullTransactionId), cmp_fxid);
		snap->nxip = qunique(snap->xip, snap->nxip, sizeof(FullTransactionId),
							 cmp_fxid);
	}
}
/*
 * Sort a snapshot's txids, so we can use bsearch() later.  Also remove
 * any duplicates.
 *
 * For consistency of on-disk representation, we always sort even if bsearch
 * will not be used.
 */
Sort a snapshot's txids, so we can use bsearch() later.  Also remove
any duplicates.

For consistency of on-disk representation, we always sort even if bsearch
will not be used.
Sort a snapshot ' s txids so we can use bsearch () later . Also remove any duplicates . For consistency of on - disk representation we always sort even if bsearch will not be used .
static void
sort_snapshot(pg_snapshot *snap)
{
	if (snap->nxip > 1)
	{
		qsort(snap->xip, snap->nxip, sizeof(FullTransactionId), cmp_fxid);
		snap->nxip = qunique(snap->xip, snap->nxip, sizeof(FullTransactionId),
							 cmp_fxid);
	}
}
static void sort_snapshot ( pg_snapshot * snap ) { if ( snap -> nxip > 1 ) { qsort ( snap -> xip , snap -> nxip , sizeof ( FullTransactionId ) , cmp_fxid ) ; snap -> nxip = qunique ( snap -> xip , snap -> nxip , sizeof ( FullTransactionId ) , cmp_fxid ) ; } }
Sort a snapshot's txids, so we can use bsearch() later.
Sort a snapshot ' s txids so we can use bsearch () later .