loading...

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

FULL DISCUSSION
 

Javascript

var sorted = [...cases].sort((a,b)=>a.split(' ')[1].localeCompare(b.split(' ')[1]))
code of conduct - report abuse