fix wrong sort order option