Page 1 of 1

ordering #'s

Posted: Wed May 08, 2002 3:20 am
by Guest
um how do you order a group of #'s by they're value?

Re: ordering#'s

Posted: Tue May 14, 2002 2:17 am
by frankiebaby
well, that depends on how your holding the numbers, so if your in an array, that would be much easier, just check if the first 2 are in order, if not use the swap command, and add 1 to a temp counter, else do nothing. then the second and third, third and forth, ect. then loop again until the temp counter comes out zero.