def g_c(password) r = []; password.chars.sort{|a,b| r << a; a.ord - b.ord} r.joinend print g_c('Hello, world!')
Standard input is empty
eHollHHelw rdll oooow,,,Heelloo
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!