.net - Array.sort() is not working correctly -


Suppose that the values ​​in the array are:
  dim arrnum () as integer = nothing << html> 

arrnum values ​​(3, 8, 6, 15, 2, 10)

  Sort (Arrnum)   

Values ​​are sorted out (10,15,2,3,6,5)

Actually, I'm going to value a sorted way is required.

Can you help me?

I think you have some mistake to define the array, see the code below, this work Done

  dim arrnum () as integer = nothing [3, 8, 6, 15, 2, 10] array. Sir (arrnum)    

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -