Vuo  1.2.8
Functions
VuoSort.c File Reference

Description

VuoSort implementation.

Functions

static int compareFloats (const void *a, const void *b)
 Helper function for VuoSort_sortArrayByOtherArray(). More...
 
void VuoSort_sortArrayByOtherArray (void *array, unsigned long elemCount, unsigned long elemSize, VuoIndexedFloat *other)
 Puts both array and other in ascending order of other's elements' values. More...
 

Function Documentation

◆ compareFloats()

static int compareFloats ( const void *  a,
const void *  b 
)
static

Helper function for VuoSort_sortArrayByOtherArray().

Returns a negative, zero, or positive result depending on whether the value of a is less then, equal to, or greater than the value of b.

◆ VuoSort_sortArrayByOtherArray()

void VuoSort_sortArrayByOtherArray ( void *  array,
unsigned long  elemCount,
unsigned long  elemSize,
VuoIndexedFloat other 
)

Puts both array and other in ascending order of other's elements' values.