Well, you could read each line, one at a time, and copy/move each value into a temporary arraylist.
http://stackoverflow.com/questions/6655246/how-to-read-text-file-by-particular-line-separator-characterSo we'd use "-" as the delimiter.
Then you'd have a temporary arraylist with :10, 11, 42, 35, 27, 41... which you could use any simple sorting method to sort (insertion, radix, bucket, etc.).
Overall, it'd look something like:
for each line:
1) copy line to temporary list X using "-" as a delimiter
2) sort that line
3) return/print the newly sorted arraylist