This regards views integration.

1. Create a view that lists bean blocks
2. Add title and label fields
3. Enable click sorting for those fields at Format: Settings

Clicking the column header for title and label then only highlights those columns. Repeatedly clicking either column switches the direction the arrow points, but does not change the order of records.

What I've checked so far:

- When viewing the SQL, the ORDER BY of the click sort is not in the query.
- views_handler_field::click_sort() is getting called, and $this->query->add_orderby() is getting exeuted, and affecting the query object. Something is apparently keeping it from making it back into the actual SQL.

I'm guess that the problem is somewhere around the basic field definitions or schema and how they're getting exposed to views, but I haven't been able to get farther than that.

Comments

indytechcook’s picture

All of the views integration besides a few links and operations is handled by the enitty_api module.

There is a default view provided, are you using the that view?

nadavoid’s picture

Status: Active » Closed (works as designed)

@indytechcook, Thanks for the suggestion to compare to the default view. Table header click sorting does work in the default view, so I just had to figure out what I was doing differently. My problem ended up being that I had an exposed sort in addition to the table header sorting. Even with "override normal sorting..." selected, if there is an exposed sort, the exposed sort always wins. Purely a views understanding issue. The bean labels are working just fine.