
uses console
uses stringutil

new TextArray sa

string t="
four
one
two
three
Four
five
9
8
7"
'print t

sa.lines(t)


'case insensitive sorts:

sa.sortlines()

print "ascending sort:" cr sa.lines()

sa.sortlines(1)

print "descending sort" cr sa.lines()
wait
del sa
