I would like to know if anybody has an example of how to sort a list by 0-9, A-Z...
Hi Jacob,
Sure, the simplest way would be using a bubble sort, imagine you want to sort Arr1 (that is an array), define some integers and an extra variable, lets say "a". It should look like this:
-
for i = lbound(arr1) to ubound(arr1)-1
-
k=i
-
j=i+1
-
do
-
If Bigger(arr1(j) , arr1(k)) = true then k=j
-
j=j+1
-
loop until j> ubound(arr1)
-
a=arr1(i)
-
arr1(i) = arr1(k)
-
arr1(k) = a
-
next
Just create the function "bigger" as a boolean so it will return True if the first element should be before the second. Using the sorting rules you want.
This is a simple method, it works when working with few elements, but when there are many elements it'll be slow.
Check other algorithms in
Wikipedia, and try to create the code by yourself.
HTH