Dynamic sorting

hi,

I am a beginner in Flasf action scripting. I am trying to create a dynamic soriting list …ie I have a list of numbers(around 100)which the user should be able to arrange in the ascending order with proper alerts for incorrect entry…

I am stuck right in the middle…since i cant possibly sit and write 100 if loops…

SO pleaseeee help!!!