* registry.el (registry-prune): Make the sort function optional.