Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 68930

Sort 2D Array - Not sorting string numbers correctly

$
0
0

Hi guys,

 

If we have a 2D Array of strings, which happen to be numbers of different magnitudes, when we run it through the sort2Darray.vi, why doesn't it sort those numbers correctly?

 

In the attached VI:

If we sort by column 0, which only has numbers from 1-9- it sorts correctly,

If we sort by column 2, which only has letters- again, it sorts correctly,

If we sort by column 1, which has numbers below and beyond 9, it pools all the 1's together, 2's together and so on...

 

Am I missing something or it this a bug?

 

JohnatanBravo_0-1711723626294.png

 


Viewing all articles
Browse latest Browse all 68930

Trending Articles