I cannot seem to even think of a way I might do this. Basically I have 6 lists with various pieces of information about the data I'm processing. I need to sort one of the lists (the one containing the date/time information) and have the rest of the lists sort the same exact way.
So let's say I have these 2 lists:
List<int> dates = new List<int>() { 56789, 01234 };
List<string> names = new List<string>() { name1, name2 };
I sort the "dates" list so that it's ordered from lowest to highest:
01234
56789
Then the names list needs to adjust accordingly, meaning it would sort to:
name2
name1
How would I go about doing something like this?
In PHP there are associative arrays that made this simple, but with this many lists it'd still be a huge pain.
Any help will be most appreciated, I can't really continue with my program until I sort this out.
So let's say I have these 2 lists:
List<int> dates = new List<int>() { 56789, 01234 };
List<string> names = new List<string>() { name1, name2 };
I sort the "dates" list so that it's ordered from lowest to highest:
01234
56789
Then the names list needs to adjust accordingly, meaning it would sort to:
name2
name1
How would I go about doing something like this?
In PHP there are associative arrays that made this simple, but with this many lists it'd still be a huge pain.
Any help will be most appreciated, I can't really continue with my program until I sort this out.
Comment