you can use the flash split() method of strings to form an
array with each line as an element and then use the flash sort()
method of arrays to sort your array elements and finally use the
flash join() method of arrays to form a string that can then be
assigned to the text property of a textfield for display.