Sharkovskii order by ksk

puts$<.sort_by{|_|_=_.to_i
[_&_-1<1???-_:-_&_,_]}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return top