I am trying to place data from a text file into an array and then sort it by date and finally display it in a text box.
The part I am stuck on is sorting the data by date. As I do not want to confuse anyone trying to help me I will include an example of what I am trying to do.
Here is the how the text apears in the text file:
02/07/2010,18 29/06/2010,282 23/06/2010,302 22/06/2010,121 24/06/2010,282 25/06/2010,96 28/07/2010,113 30/06/2010,232 01/07/2010,51
And this how I want the text to appear after it has been sorted and placed in the textbox:
22/06/2010 - 121 23/06/2010 - 302 24/06/2010 - 282 25/06/2010 - 96 29/06/2010 - 282 30/06/2010 - 232 01/07/2010 - 51 02/07/2010 - 18 28/07/2010 - 113
I have managed to place the text into an array but I just cannot figure out how to sort it.
Any help will be greatly appreciated.
Many thanks for taking the time to read this post.
Edited by Minko: typo