fork(1) download
  1. s=io.read()t={s:byte(1,-1)}table.sort(t)print(s.char(unpack(t)))
Success #stdin #stdout 0s 2836KB
stdin
this
stdout
hist