Vuo  1.2.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
VuoSort.c File Reference

Description

VuoSort implementation.

Functions

static int compareFloats (const void *a, const void *b)
 Helper function for 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.
 

Function Documentation

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.

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.