By using Array.sort (arrayName) method. It sorts the elements in an entire one-dimensional Array using the IComparable implementation of each element of the Array.
If you want to sort in descending order, First sort the array using Array.sort(arrayName) then reverse the same using Array.reverse (arrayName) method.
[amazon_link asins=’9351190900,007070368X,8120352068,9386873583|1840787198,1484230175,0985580135′ template=’ProductGrid’ store=’desibanjara22-21|desibanjaraco-21′ marketplace=’IN|UK’ link_id=’66554407-915d-11e8-9dd7-b3406be566d4′]