View Single Post
  #1   Spotlight this post!  
Unread 12-01-2009, 20:03
Kahn! Kahn! is offline
Registered User
FRC #1379
 
Join Date: Sep 2008
Location: Norcross, GA
Posts: 22
Kahn! is an unknown quantity at this point
Sorting 2-D Arrays [Labview]

I spent about 3 hours today circumventing the idea of sorting 2-D arrays in Labview. I had a 2-D array of 3 values. My plan was to reorder the array by one of the values while keeping the other values in the same index.

For example, this array:

[0] 6 14 28
[1] 7 81 4
[2] 1 15 38

I would want to sort it by column 3 making it this:
[0] 7 81 4
[1] 6 14 28
[2] 1 15 38

Does anyone know of a simple way to do this, or should I stick with my excessive, hard-to-follow code that I don't think I'll ever understand now that I've finished writing it?
Reply With Quote