Depends on how you are adding the sublist. You usually do it without script unless there is a specific reason and when you use a saved search you can just sort in the saved search.
If you are doing it in script then just sort the items before adding the rows.