**C program to sort a one dimensional array in ascending order**

Bubble Sort is an algorithm for sorting (arranging in ascending order or descending order) numbers. The Bubble Sort algorithm is very easy to understand. A Bubble Sort uses iteration; an array to be sorted from the first element to the last, comparing each element to adjacent elements and swapping their positions if necessary. This process is repeated as many times as necessary, until the... As you can see, the array has been sorted in ascending order. Sorting in descending order, however, is only possible either by writing your own sorting code, or converting your array to Integer objects then importing from the Collections library.

**How to sort descending an array with underscore**

Define the term of what you're sorting on first, because you can sort by age or name in your example. Age is easy by implementing a number of sort algorithms using integers.... Onclick of the button "Click" in the HTML code fires the function myFunction() in the