Board Thread:Questions and Answers/@comment-25139420-20140909233611/@comment-14600979-20140909233850

Have you seen http://www.snailfacia.net/PTCguide/index.html#SORT ?

If you can get your input into an array, this will sort it for you.