For that you must cleary separate the visual display (View) and the data source (Model).
Your data sounds more than a ordered list or an array. Insert the data ordered and than reload the data.
The list control has a lot of possibilities, so take a look at the articel
Using the List Control. It has option for adeactivating ordering or setting a sort function (for callback ordering).