Support for define-sort command