This content has been marked as final. Show 2 replies
The Map will always be a singletonMap so one key/value. The indexes are maintained across entries in the Collection not with in a single Map. BTW, I found out the problem was not the way it is sorting. In my scenario when this Collection is processed it is multithreaded and we lose the sorted entries to be processed in sequence.