I have a LongSparseArray
variable, in which the objects stored implement the interface Comparable.
Is there a easy way to sort them, without do it "manually"?
I tried Collections.sort(myLongSparseArray)
, but it does not implements the List interface.
Another way could be convert it to a List, but still I have not found any method to do that.