case 'database columns':
      return array(
        'value' => array('type' => 'int', 'not null' => FALSE, 'sortable' => TRUE),
      );

Making 'sortable' => TRUE appears to work fine?

Comments

mh86’s picture

if 'sortable' is set to TRUE, terms will be sorted by their term id, which doesn't make much sense. It rather should be the term name. It's possible to do that by adding some views joins to the term_data table and filter by the name. I'm planning to add this, but maybe a bit later.

matt_paz’s picture

Ah, right ... good call. Looking forward to this ... thanks a lot!

drewish’s picture

Status: Active » Closed (duplicate)

the correct way to do this is with a relation so you can use the built in taxonomy module support. #320349: Add a views relation so Content Taxonomy fields can use built-in taxonomy code has a patch to do just that so i'm marking this as a duplicate.