src/backend/replication/logical/reorderbuffer.c
static int
file_sort_by_lsn(const void *a_p, const void *b_p)
{
	RewriteMappingFile *a = *(RewriteMappingFile **) a_p;
	RewriteMappingFile *b = *(RewriteMappingFile **) b_p;

	if (a->lsn < b->lsn)
		return -1;
	else if (a->lsn > b->lsn)
		return 1;
	return 0;
}
/*
 * qsort() comparator for sorting RewriteMappingFiles in LSN order.
 */
qsort() comparator for sorting RewriteMappingFiles in LSN order.
qsort () comparator for sorting RewriteMappingFiles in LSN order .
static int
file_sort_by_lsn(const void *a_p, const void *b_p)
{
	RewriteMappingFile *a = *(RewriteMappingFile **) a_p;
	RewriteMappingFile *b = *(RewriteMappingFile **) b_p;
	if (a->lsn < b->lsn)
		return -1;
	else if (a->lsn > b->lsn)
		return 1;
	return 0;
}
static int file_sort_by_lsn ( const void * a_p , const void * b_p ) { RewriteMappingFile * a = * ( RewriteMappingFile * * ) a_p ; RewriteMappingFile * b = * ( RewriteMappingFile * * ) b_p ; if ( a -> lsn < b -> lsn ) return -1 ; else if ( a -> lsn > b -> lsn ) return 1 ; return 0 ; }
qsort() comparator for sorting RewriteMappingFiles in LSN order.
qsort () comparator for sorting RewriteMappingFiles in LSN order .