Yes, my list items are structs called "NODE", which contain a field called "depth". Your post was just the hint I needed. Here's the final form of the compare function:
int CVICALLBACK SortByDepth (void *item1, void *item2)
{
NODE *itemA, *itemB;
double a, b;
itemA = (NODE*)item1;
itemB = (NODE*)item2;
a = itemA->depth;
b = itemB->depth;
if (a > b)
return 1;
if (a == b)
return 0;
else
return -1;
}
Works like a charm. Thanks again!
Slowpoke
Slowpoke
CLAD (believe it or not!), using LabVIEW 8.5
They don't call me "Slowpoke" for nothin'!