I have an array to hold different price data and I was trying to sort it, but the result is strange:
1. Before sort, the array values are correctly assigned like this:
MyArray[0] : 8783.75
MyArray[1] : 8777
MyArray[2] : 8790
2. Then I did
Array.Sort(MyArray) without any errors
3 After sort, it prints out:
MyArray[0] : 0
MyArray[1] : 0
MyArray[2] : 0
Any ideas?
Thanks!
Comment