kytschBASIC

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

NSORT
ARRAY

Sort an array comparing elements as numbers.

Example

DIM test$=("5-card","9-card","3-card","6-card","1-card","4-card","7-card","8-card","2-card","10-card")

NSORT(test$)

FOR val$ IN test$

	PRINT val$

	PRINT " "

NEXT

Output

1-card 2-card 3-card 4-card 5-card 6-card 7-card 8-card 9-card 10-card