Fix updated sort direction