First, thanks for this module. Drupal really needs it, IMO.

I'm running the 4.6 version of the module on Drupal CVS from about a month ago. (I'm not going anywhere near the latest CVS because of the form changes).

Tables in this module should default to sorting by date, to show most recent posts first. This seems like an obvious issue, so it may be a bug? If not, it would be a great default to set.

Comments

kbahey’s picture

Hmmm

The sorting is done by the tablesort_query, and it has:

     array('data' => t('Last Post'), 'field' => 'last_post', 'sort' => 'asc')

So, I am not sure if that takes effect initially, or only after someone clicks on it?

ixis.dylan’s picture

Shouldn't that be 'desc'?

kbahey’s picture

That is what I was thinking, but it was getting late.

If you can change it locally and test it, and verify it works, I will commit a change for it.

agentrickard’s picture

Tested on 4.6.3. If you edit line 151 of v1.1 to

      array('data' => t('Last Post'), 'field' => 'last_post', 'sort' => 'desc')

Then the default sort is most recent post.

kbahey’s picture

Assigned: Unassigned » kbahey
Status: Active » Fixed

Commited for 4.6 and HEAD.

Thanks to both of you.

Anonymous’s picture

Status: Fixed » Closed (fixed)