devise sorting scheme for submitting word