sasa lazic

sasa lazic

  • NA
  • 104
  • 50.1k

C# sort List's

Sep 30 2014 4:18 AM
Hello everyone,
 
 
This is my problem and i don't know how to solved.
 
I create  8 list
List<string> vreme = new List<string>();
List<double> latituda = new List<double>();
List<double> longituda = new List<double>();
List<int> gpsKvalitet = new List<int>();
List<int> brojSatelita = new List<int>();
List<double> hdop = new List<double>();
List<double> visina = new List<double>();
List<string> vremeDT = new List<string>(); 
 
 
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.
 

Answers (4)