We can store a string in an alphabetical order by using ALPHA routine with tJava component.