1 Reply Latest reply on Jun 10, 2010 9:22 PM by VicTropic

    array values in first second third placing

    VicTropic

      Ive managed to create a for loop that finds the highest value in an array:

      array[0]=max

      for(e=0;e<array.length;e++){

      if(array[e].value > max.value){

           array[e]=max

      }

      }

       

       

      but Im trying to create a for loop that places all the values in that array from lowest to highest