Extensions to `sort.el'