Hello,I want to sort following items.
ElListBox1->Items->Clear();
ElListBox1->Items->Add(UnicodeString("A"));
ElListBox1->Items->Add(UnicodeString("C"));
ElListBox1->Items->Add(UnicodeString("+"));
ElListBox1->Items->Add(UnicodeString("E"));
ElListBox1->Items->Add(UnicodeString("-"));
ElListBox1->Items->Add(UnicodeString(" "));
ElListBox1->Items->Add(UnicodeString("-A"));
ElListBox1->Sorted=true;
the result is
-
+
A
-A
C
E
the expedted result is
+
-
-A
A
C
E
What is wrong on my code?
Comments
buf.UseLocale := False;