fix typo in sort_spec