Associate
Hi all. I know this may not be the best way of doing this but I've got a small group of lists that represent aircraft data.
Which looks like this :
public List <string> AIRCRAFT_ID = new List<string>();
public List <int> ALTITUDE = new List<int>();
public List <int> passengers_on_board = new List<int> ();
So each element of the 3 lists represents one aircraft. This works fine when all I'm doing is adding aircraft to the list.
Now how would I get on if i wanted to sort the list based on say altitude because if I was to do something like :
ALTITUDE.sort .....
Then the other lists would be out of sync.
This is quite new to me so hopefully any help would be in laymans terms (if possible).
Regards
Which looks like this :
public List <string> AIRCRAFT_ID = new List<string>();
public List <int> ALTITUDE = new List<int>();
public List <int> passengers_on_board = new List<int> ();
So each element of the 3 lists represents one aircraft. This works fine when all I'm doing is adding aircraft to the list.
Now how would I get on if i wanted to sort the list based on say altitude because if I was to do something like :
ALTITUDE.sort .....
Then the other lists would be out of sync.
This is quite new to me so hopefully any help would be in laymans terms (if possible).
Regards