Alphabetize Strings in an Array?

Get help using Construct 2

Post » Sun Jun 30, 2013 5:36 am

I have a simple project I am working on that is basically a sign in book for an event. I have built a system that accepts names and enters each name into an array. I would like to alphabetize the names in no fancy manner. Simply Abraham Lincoln comes before Benjamin Fowler but after Abe Lynn. This would give me a lot more control over the display of the names after they are all entered.

Is this possible?
B
10
S
4
G
2
Posts: 133
Reputation: 2,667

Post » Sun Jun 30, 2013 6:23 am

Just call Array.Sort.
ImageImageImage
B
71
S
22
G
249
Posts: 3,763
Reputation: 138,577

Post » Sun Jun 30, 2013 6:37 am

I need to go slap myself it was staring me in the face and I couldn't see it ...

Thanks!!
B
10
S
4
G
2
Posts: 133
Reputation: 2,667


Return to How do I....?

Who is online

Users browsing this forum: Christmas, Yahoo [Bot] and 20 guests