A student learning Ruby was trying to make a function that sorts all the letters of a word, but their code is broken, and they can't figure out why.
Spot and fix the error(s) in the code to make the function work.
sort_word("dcba") ➞ "abcd"
sort_word("Unpredictable") ➞ "Uabcdeeilnprt"
# Capital letters should come first.
sort_word("pneumonoultramicroscopicsilicovolcanoconiosis") ➞ "aacccccceiiiiiilllmmnnnnooooooooopprrsssstuuv"N/A