Add settings support for sortResults

Can't see a reason for this setting to be omitted.