You need to write your own sort method. There are several methods to do so: Quick Sort, Bubble Sort, Insertion Sort, etc... find the one that best fits your situation and implement it in your collection.

Alternatively, you can make sure that when you add items to your collection that they are inserted in the correct location - so the sorting is done when items are added.