I'm looking for a Scala mutable sequential collection that sorts elements on insert. I.e. after I've finished inserting the elements, the resulting collection is sorted. It seems this thing doesn't exist, but maybe I'm missing something? It probably wouldn't be so hard to implement, but I don't want to reinvent the wheel.
EDIT: Set semantics are not suitable, since elements could be repeated.
EDIT: I'm looking for Scala collection, not Java one. This question is not about how to achieve such behavior on JVM, but about existing Scala collection that does this. If such thing doesn't exist, I'll accept such answer.