Updated SortText.java to reflect changes in UML