Ordered Collection

A collection of items that can be accessed in an ordered fashion. Allows items to be inserted or removed by position. This is unlike an associative collection, such as a Map, or a Set that does not allow clients to positionally insert elements. Only an ordered collection can be sorted. If you have an un-ordered bag of elements, sorting them has no effect since its elements cannot be positionally accessed -- i.e. One cannot ask is first element greater than second element?.

You're confusing ordering with sequence, I think. Among the various types of sorted collections you can have are:


EditText of this page (last edited November 13, 2014) or FindPage with title or text search