Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let names = gets().split(' ');
- // console.log(names)
- for(let i = 0; i < names.length; i++){
- names[i] = names[i].split('').sort().join('')
- }
- console.log(names.sort().join(' '))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement