kytschBASIC

Put down that phone!
Please view me on real computer.

NATSORT
ARRAY

Sort an array sorting using 'natural ordering.'

Example

DIM test$=("card5","card9","card3","card6","card1","card4","card7","card8","card2","card10")

NATSORT(test$)

FOR val$ IN test$

	PRINT val$

	PRINT " "

NEXT

Output

card1 card2 card3 card4 card5 card6 card7 card8 card9 card10