01-06-2014 04:20 AM - edited 01-06-2014 04:24 AM
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:
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.
Solved! Go to Solution.
01-06-2014 04:40 AM
01-06-2014 06:54 AM
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.
01-06-2014 09:00 AM
Someone found the solution to my problem here : https://decibel.ni.com/content/docs/DOC-13719
01-06-2014 09:38 AM - edited 01-06-2014 09:38 AM
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.