Example Note: This sort requires numbers to sort properly. Field 0: Field 1: Field 2: Field 3: Field 4: Field 5: Field 6: Field 7: Field 8: Field 9: Sort
The JavaScript code function sortme() { var fields = document.getElementsByTagName("input"); var nums = new Array(); for (var i=0; i nums[j]) { var tmp = nums[i]; nums[i] = nums[j]; nums[j] = tmp; } } } for (var i=0; i