how can i put the lowest number in left side one by one?
example.. i'll put the 5 numbers in input box..
5 23 4 6 8
number 4 is lower than 23 so it will move at left sides of number 23 and number 5.. it will be come..
4 5 23 6 8
then the next is 5.. the question will ask.. 5 is higher than 4 and lower than 23..
then the next is 6.. 6 is lower than 23 so it will move at 23's left's side..
4 5 6 23 8
then the next is 8.. 8 is lower than 23, so it will move at left side..
4 5 6 8 23..
then it says.. 4 is lowest number and 23 is the highest number..
plz help me.. this is my first time to used php that's why i'm 0 knowledge bout this..
thankx!!!!c",