0

Numerical order sorting arrays

Will Bartlett 2 months ago in IQANdesign updated by Thomas Moberg (System support) 2 months ago 3

Hello all, I have numbers in an array that need to be sorted numerically (from small to large). Does anyone have any functions that may be useful? It would also be useful to get the reordered number's index values.

The only functions you have built in is to get the min/max and average values of arrays.

Any sorting outside of this would need to be done by yourself by comparing/sorting each value.

And depending on how large the array is, this will fast become unfeasible.

i've got ten numbers to sort in the array, its looking to me like this may not be possible.

It is not impossible.

As i said, you need to do the sorting yourself with the logic in IQANdesign.

Here is an example i made where i sort the incomming values for the array so that it always goes from highest to lowest.

But as you can see in the example it gets bigger the more values the array has.

Array test.idsx