i am displaying text in a listbox that i am getting from variables and i want to be able to sort it alphabetically from a-z and z-a by clicking a button but i can find anywhere the code needed to sort the data held in the listbox but all i can do is sort it using the properties but this only sorts it a-z.

the data in the variables comes from a text file.