Hello everyone,
This is my problem and i don't know how to solved.
I create 8 list
List vreme = new List();
List latituda = new List();
List longituda = new List();
List gpsKvalitet = new List();
List brojSatelita = new List();
List hdop = new List();
List visina = new List();
List vremeDT = new List();
List
List
List
List
List
List
List
Than i use vreme.Sort(); and sorting first list .
but now i want sort other by first list
i mean if vreme[7] after sorting take place vreme[1] i want the element in other list
latituda[7]
longituda[7]
gpsKvalitet[7]
brojSatelita[7]
hdop[7]
visina[7]
vremeDT[7]
take new place
latituda[1]
longituda[1]
gpsKvalitet[1]
brojSatelita[1]
hdop[1]
visina[1]
vremeDT[1] after finish sorting.

VulpesRank #55 · 29.2K reputationPosted Oct 1, 2014, 7:54 AM EDT
However, the following variation of it is not too bad and you could use it where the lists are large as it would then use the quicksort algorithm rather than an insertion sort:
VulpesRank #55 · 29.2K reputationPosted Sep 30, 2014, 6:52 AM EDT
If the lists are not very large, this insertion sort should be reasonably efficient:
sasa lazic95 reputationPosted Sep 30, 2014, 9:38 PM EDT
I find solution on google
//List
//List
//string[] vremeNoSort = vrNoSort.ToArray();//po ovome sortiram ostale lise
//double[] latitudaSort = latitudaNoSort.ToArray();//prva ostala lista
//double[] longitudaSort = longitudaNoSort.ToArray();
//int[] gpsKvalitetSort = gpsKvalitetNoSort.ToArray();
//int[] brojSatelitaSort = brojSatelitaNoSort.ToArray();
//double[] hdopSort = hdopNoSort.ToArray();
//double[] visinaSort = visinaNoSort.ToArray();
//Array.Sort(vremeNoSort, latitudaSort);
//Array.Sort(vremeNoSort, longitudaSort);
//Array.Sort(vremeNoSort, gpsKvalitetSort);
//Array.Sort(vremeNoSort, brojSatelitaSort);
//Array.Sort(vremeNoSort, hdopSort);
//Array.Sort(vremeNoSort, visinaSort);
//vreme = new List
//latituda = new List
//longituda = new List
//gpsKvalitet = new List
//brojSatelita = new List
//hdop = new List
//visina = new List
But this not work correct. Might give you an idea for future.
thanks again
sasa lazic95 reputationPosted Oct 1, 2014, 8:27 AM EDT