LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Trier/classer un tableau 2D

Solved!
Go to solution

Bonjour

 

je veux trier un tableau 2D en fonction de la première colonne, et pour les valeurs identiques de la première colonne, classer les autres colonnes.

Et si la colonne suivante a aussi des valeurs identiques, classer la colonne encore après.

 

A partir de ça:                                          Je veux ça:

Nouveau Image bitmap.GIF

 

La solution que je vois c'est faire des boucles pour classer les lignes les unes après les autres mais je me demandais si c'était possible plus facilement, par exemple avec un cluster?

 

Merci.

 

0 Kudos
Message 1 of 5
(3,847 Views)
Hi please check the examples provided in this link if it is helpful
http://forums.ni.com/t5/LabVIEW/sorting-2D-string-array/td-p/692761
Thanks
uday
0 Kudos
Message 2 of 5
(3,838 Views)

Not exactly what I need.

It can only sort the whole array over 1 column, and what I need is to sort over all of them.

i.e if in the first column you have several times the same value, it has to sort the second column, and if there're several times the same value in the second, sort the third, etc... Anyway I have 3 columns in my array.

0 Kudos
Message 3 of 5
(3,823 Views)
Solution
Accepted by topic author alstomtarbes

Someone found the solution to my problem here : https://decibel.ni.com/content/docs/DOC-13719

0 Kudos
Message 4 of 5
(3,812 Views)

Good that you found solution. Long back i got this code from forum only, but i don't remember from where.

-It was done for strings actually. In this you can select whichrow/column you want to sort accordingly.

Thanks
uday
0 Kudos
Message 5 of 5
(3,802 Views)