fixed a bug in the sort command keymap