stable partition by Hendrik

val s=readLine
print(s.sortBy(c=>0.compare(s(0)-c)))

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

download

return to the top page