We've recently made an accessibility improvement to the community and therefore posts without any content are no longer allowed. Please use the spoiler feature or add a short message in the message body in order to submit your weekly challenge.

Weekly Challenge

Solve the challenge, share your solution and summit the ranks of our Community!

Also available in | Français | Português | Español | 日本語
IDEAS WANTED

We're actively looking for ideas on how to improve Weekly Challenges and would love to hear what you think!

Submit Feedback

Challenge #348: Reorder a List of Names

AYXAcademy
Alteryx
Alteryx

A solution to last week’s challenge can be found here.image_348_2.png

 

To solve this week’s challenge, use Designer Cloud or Designer Desktop.

 

Do you have to reformat lists because the last name and first name are listed in a different order?

 

In this weekly challenge, you need to rearrange an improperly formatted list of subscribers. Some of the subscribers’ names are listed with the last name(s) followed by a comma, and then the first name(s).


Your goal is to reorder the list with the first name(s) followed by the last name(s), and put the list in alphabetical order. For example, the subscriber “BORROEL GOMEZ, JUANA” should be listed as “JUANA BORROEL GOMEZ” with no punctuation.

 

Note that some subscribers can have more than one first name or last name.

 

Haven’t heard about Designer Cloud yet? Watch a demo. 

RWvanLeeuwen
11 - Bolide

My solution can be improved by handling edge cases due to suffixes as 'JR' but here's my take

Spoiler
348.png
dougbaron
8 - Asteroid
Spoiler
dougbaron_0-1670247460482.png

 

benjimoser
8 - Asteroid

I did it with RegEx Replace

 

Spoiler
benjimoser_0-1670247738037.png

 

dougbaron
8 - Asteroid

@benjimoser very simplified. nice job!

AkimasaKajitani
16 - Nebula
16 - Nebula

My solution.

 

Spoiler
AkimasaKajitani_0-1670248085802.png

 

DataNath
16 - Nebula

My solution to #348.

 

Spoiler
DataNath_0-1670249371581.png


Kachow!

DanFlint
8 - Asteroid

My solution using regex replace:

Spoiler
DanFlint_0-1670250456966.png

 

Kenda
15 - Aurora
15 - Aurora
Spoiler
Straight from AoC to the weekly challenge this Monday morning! 

Kenda_0-1670251060031.png

 

balajilolla1
8 - Asteroid
Spoiler
Solution Attached

balajilolla1_0-1670251731692.png