You can use the APPEND statement to fill a sorted internal table.