Currently you can only sort on fields that define themselves as click_sortable.

Because we don't care how fields are stored in or retrieved from the database, but only what data is in the table cells there is no reason why we can't have click sorting on all (or at least most) fields.

Comments

duozersk’s picture

Like this one! Really, this would allow to create sortables on the fields that are not there in the DB, like the Custom Field (php operating with data from other columns) outputting the numbers or text values.

AndyB

rooby’s picture

Assigned: Unassigned » rooby

Yep, it should be able to sort pretty much anything pretty accurately.

The only ones I can think of off the top of my head that could cause problems are date module fields. Especially those with both to & from dates.

rooby’s picture

Status: Active » Fixed

Fixed in dev.
http://drupal.org/cvs?commit=402746

If anyone discovers any fields that don't sort as they should please open new issues and they can be fixed.

Status: Fixed » Closed (fixed)

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

sergei76’s picture

Still doesn't work for me on "customfield php" field. Tried both beta1 and dev versions.
Just no sorting arrows on column headers for calculated fields.

sergei76’s picture

Status: Closed (fixed) » Active
rooby’s picture

Status: Active » Closed (fixed)

I haven't actually tried that kind of field. I'll have a look when I get a chance.

I opened a new issue #1208668: Doesn't work for customfield php fields

nicothezulu’s picture

Any movement on this? Would be good to know more about that.

rooby’s picture

Check out the issue linked in #7.

No progress yet but it's finally holiday season so I'll have some free time.
Hopefully a new version of this + a D7 port.