TStringList.Sort

procedure Sort

Description
This function will sort strings in TStringList alphabetically. Note that this doesn't set Sorted to TRUE, so if you plan to add more strings and don't want to break the sorting, you have to set it to TRUE manually.