added case perameters to sorting options