String Sorts

rfhall50

Member
Licensed User
Longtime User
I have a stirng array of about 300 names. I need to sort them to put them in alphabetical order. I have been trying to use the bubble sort example, but comaring and replacing in a string array seems to choke.

My data is in the format: lastname, Spouse1 & Spouse2

Do the "," and "&" pose problems to a string array ?
Does the "immutable" factor apply to string arrays ?

I'm learning but still struggling !

Thanks.
Bob
 

kickaha

Well-Known Member
Licensed User
Longtime User
Instead of using an array, why not put them in a list, the list has a sort member so you do not have to implement your own sort.
 
Upvote 0

kickaha

Well-Known Member
Licensed User
Longtime User
You can have a list of lists, or a list of arrays, depending on your needs.

Lists are great :sign0188:
 
Upvote 0
Top