Hi guys.
A array question.
I've built a tiny search engine for our Intranet. It's simple but it works. However -I have a small problems sorting the results.
I need to create an array that contains 2 values and sort it on one of them. Something like:
A string, 10
Another string, 5
A third string, 55
Surprise - another string, 90
Put these into an array and sort them on the number so that I can then loop through the array and print them out.
I'm a bit rusty on arrays and so far only worked with 'simple' arrays (a[0]=4 etc.)
I've read a bit on multidimensional arrays but am not sure how to use them for this.
Anyone that can lend a hand?
Best regards
Björn