loading...

re: Daily Challenge #245 - Sort Santa's Reindeer VIEW POST

FULL DISCUSSION
 

JS

const sort_reindeer = lst => lst.sort((a,b) => a.substring(a.indexOf(' ')).localeCompare(b.substring(b.indexOf(' '))))
code of conduct - report abuse