Alphabetize by last name - MATLAB Cody - MATLAB Central

Problem 70. Alphabetize by last name

Difficulty:Rate

Given a list of names in a cell array, sort the list by the last name. So if

 list = {'Barney Google','Snuffy Smith','Dagwood Bumstead'}; 

then the output is

 alpha_list = {'Dagwood Bumstead','Barney Google','Snuffy Smith'}

Solution Stats

41.75% Correct | 58.25% Incorrect
Last Solution submitted on Jun 11, 2025

Problem Comments

Solution Comments

Show comments
Why should you share code?
In a discussion on LInkedin about my recent blog post, Do these...
3
6

Problem Recent Solvers2307

Suggested Problems

More from this Author96

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!