title: Java - Given a String, how to order all its chars alphabetically to produce a new String?
body: <p>For example, if I start with the string "dcab" I want a function that takes that string and produces the string "abcd" from it. Likewise "cat" should produce "act". I'm trying to think of an efficient way to do this. Thanks for any help.</p>