Array and sorting demo II

Example

Note: This sort will sort numerically if all of the data is numeric. If the data is not all numbers, then the sort will sort alphabetically.


The JavaScript code