So, I put 4 values in an array and then I sort them... how to avoid values how is not a number to add an array? e.g space,!
, and other characters? Then I put the values on different fields by sort...
var points = [t1, t2, t3, t4];
[t1, t2, t3, t4] = points;
points.sort(function(a, b){return a - b});
if (isNaN(t1)==false){this.getField("Text1").value = "§"+points[0]}
if (isNaN(t2)==false){this.getField("Text2").value = "§"+points[1]}
if (isNaN(t3)==false){this.getField("Text3").value = "§"+points[2]}
if (isNaN(t4)==false){this.getField("Text4").value = "§"+points[3]}