We're a place where coders share, stay up-to-date and grow their careers.
def superSize(x) x.to_s.to_s.split("").sort{|x,y|-(x<=>y)}.join.to_i end
Discussion on: Daily Challenge #177 - Supersize Me