vb.net 2005.
I have profitMarginArray(29,3) <29 is actually a variable, but figured I'd put in a number for the example> and what I need is to retreive elements 0 and 3 sorted on 3 in some way shape or form. The biggest problem is element 3 isn't unique so there could be 5 that have the same value (56.34 for instance) so a sorted list is out.
The current array could look something like
Item1, .34, .75, 54.67
Item2, .32, .75, 57.33
Item3, .29, .5, 42
Item4, .34, .75, 54.67
The sorted what ever needs to look like:
Item2, 57.33
Item1, 54.67
Item4, 54.67
Item3, 42
Looking for some ideas, I'll worry about the code.
Thanks in advance!!