I want to sort array A based on values in Array B
actually in Array A I have topics like
keyboard
Laptop
Desktop
mouse
and in Array B i have dates associated with each value in Array A
how i can achieve this….I was thinking of using multi array but i m not sure if there is any default method of sorting multi array …or if there is any other method to achieve this?
Use:
where A is the DateTime [] and B is the string [] with A[0] being the date that corresponds to the string B[0] and so on. (MSDN docs here)