If I expose only one sort, I see this:

[sort name]
[asc/desc]

There's no point in the first dropdown: it has only one item. This should be shown as just text.

Comments

merlinofchaos’s picture

Hm. There isn't a point, but I'm not sure there's any real need to have a special behavior for it, is there?

joachim’s picture

It looks broken to the average site visitor:

'Oh here's a dropdown... what does it do? Huh, it has only one thing in it. That's st00pid. Broken site.'

merlinofchaos’s picture

Yeah, but there are lots of ways you can configure a view that are going to be broken.

The real answer is "Don't configure it like that", isn't it? Unless there's a compelling reason to make that a valid configuration.

If anything I'd be more likely to add an analysis rule that says "Hey having just one sort exposed will look dumb, you sure you want to do this?"

esmerel’s picture

Category: bug » feature
Bilmar’s picture

I agree with merlinofchaos that you should just not expose the sort if it is just one exposed sort. Makes sense =)

However, I was wondering if this should/can be changed to a feature request to allow exposed sort as optional?
I hope I'm not missing anything obvious but optional exposed sort would add a '- None -' to the dropdown select list.

Thank you

Letharion’s picture

Category: feature » task
esmerel’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

dizarter’s picture

And how about making just the sort direction exposed if there is just one sort criterion exposed?