title: Sort listbox with string items ascending and descending
body: <p>How would one code a button so upon cliking it items in listbox would sort either ascending or descending (depends on the button clicked). It mustn't be done with built-in <code>Sort()</code> but with a <code>for</code> loop for example. Tried to pseudo-code the solution to the problem, went as far as "store each listbox item in an array with a for loop".</p>