/*
Sorted example
This example uses a list box on a form. When the application runs, a string list object is created and three strings are added to it. The strings are sorted and added to the list box, where they appear in their sorted order:
*/ 
void __fastcall TForm1::FormCreate(TObject *Sender)
{
  TStringList *pList = new TStringList();
  pList->Add("Plants");
  pList->Add("Animals");
  pList->Add("Minerals");
  pList->Sorted = true;
  ListBox1->Items->AddStrings(pList);
  delete pList;
} 
