I work with GWBASIC but unable to figure out a simple way to sort (numbers) I only have 4 numbers to deal with (range 150-200) After some calculations I get these 4 numbers and I need to have them sorted in ascending order to go to the next step.Right now I do this by hand looking at the output on the screen and look for the smallest number and type it in ascending order. Lots of wasted time, never mind the strain on the eye! I been searching all over trying formulas, but unable to find one that works for me. This is what it looks like: SM1 = 121.50 SM2 = 123.65 SM3 = 117.80 SM4 = 119.50 The new order values should be: XS1 = 117.80 XS2 = 119.50 XS3 = 121.50 XS4 = 123.65
I don't need this to print or see it on the screen it should justs move over to the next stage in the program. I would be so grateful for a very simple process so I could input in my BASIC program. Thank you !