How to sort a string in ruby?
How to sort the characters in a string alphabetically?
Assuming there is a simple string str = "bacd" I want to sort it so that the result contains result = "abcd"
How do I do this in Ruby?
source to share