prompt: convert sort actions to :toggle commands

This converts toggle-sort-field and toggle-sort-order actions to use the
:toggle infrastructure. Views can register that they can be sorted by
setting the sortable field in the view_ops struct.