Jump to content


Photo

ordering


  • Please log in to reply
1 reply to this topic

#1 FlashGameboy

FlashGameboy

    Young Padawan

  • Members
  • Pip
  • 139 posts
  • Gender:Male
  • Location:Somewhere over the rainbow
  • Interests:Mostly flash but im trying to work on Maya and some<br />signiture design

Posted 25 July 2005 - 10:52 PM

pretend i make 6 random numbers whithout knowing the value of each number
does anyone know how to organize the 6 numbers from least to greatest?

#2 Grann

Grann

    Young Padawan

  • Members
  • Pip
  • 9 posts

Posted 29 July 2005 - 05:07 PM

Very simple:

test = new Array(0,1,6,7,5);
test.sort();
info = test;

//info now = 0,1,5,6,7




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users