Is there a means of sorting the entries attained from a Scanner? The problem I'm having is that I have suffix indices to alleviate duplicate row ids and when I scan I don't get a perfectly ascending ordered list. For instance, I get something that looks like the following:
RowId: 2013-08-05 15:29:45.872 Value: 0
RowId: 2013-08-05 15:29:45.879 Value: 1
RowId: 2013-08-05 15:29:45.88 Value: 2
RowId: 2013-08-05 15:29:45.881 Value: 11
//The previous should be the following:
RowId: 2013-08-05 15:29:45.88_a Value: 3
As you can see .881 > .88 and yet the correct row is placed some 30 entries afterwards. Is there a way to override the sort or is there a convenient means of getting a Scanner back that is correctly ordered?