print join(" ", (sort $a <=> $b @char_count)); [download]
In reply to sorting array of numbers by value by Anonymous Monk