.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

python - how we can use ajax() in views.py in django? -

matlab - Using loops to get multiple values into a cell -

python - Sequence Pattern recognition with Pybrain -