/* Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely.  */
static int num_compare(const void *_a, const void *_b)
/* Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely.  */
static int num_compare(const void *_a, const void *_b)
{
    const int a = *((const int *) _a);
    const int b = *((const int *) _b);
    return (a < b) ? -1 : ((a > b) ? 1 : 0);
}