making sort feature optional