Hi , i have a groups of messages each one containing an array, or a groups of numbers in this way:
[ 2, 5, 1, 3, 5 (
[ 2, 1, 5, 9, 1 (
[ 5, 3, 1, 8, 5 (
[ 7, 7, 3, 8, 2 (
... and so on
How can i order each one of these arrays (messages) based in its similarities? i need that the most similar ones can be neighbours, so i can trigger them in a ordered way
how can i achieve this?
thanks
R.