Hello,

I did try a search in the issues but didnt find anything.

Is there a way to remember last user's sort on table with multiple columns?
e.g. if the user sorted a list by lastname desc.

There is a remember option for exposed filters, but i dont find any for table sort (or VBO table sort).

Thank you!

Comments

giorgio79’s picture

Title: Remember table sort » Remember Table Sort
Version: 6.x-2.12 » 6.x-3.x-dev
Category: support » feature

+1

merlinofchaos’s picture

Status: Active » Closed (won't fix)

Sorry, there's no way to do this. Only one column can be active at a time.

ludo.r’s picture

Ok, only one column at a time. This makes sense.

But what about having a remember option for the sorted column?

zbricoleur’s picture

subscribing

ludo.r’s picture

Status: Closed (won't fix) » Active

Maybe could have some feedback on this?
Is it feasable for one single column?

PS: setting issue active to have more visibility.

ZuluWarrior’s picture

I'd like to see this.

I have a view, with a page on the path /selector for example and a null contextual filter. it displays content titles in a list and exposes filters and sort criteria. Each title in the list links to the view but adds its node i as a contextual filter, for instance /selector/1. Regardless of the contextual filter part the list is displayed.

This view has an attachment, the attachment uses the contextual filter as a node ID and displays the title. So for /selector/1 it would display node 1's title.

so we end up with a list of node titles+links along the bottom, and the 'selected' node title in the attachment:

/selector/1
[              Node1 Title              ]
 Node1 Title - Node2 Title - Node3 Title
(/selector/1)-(/selector/2)-(/selector/3) 

/selector
[                                       ]
 Node1 Title - Node2 Title - Node3 Title
(/selector/1)-(/selector/2)-(/selector/3) 

Switching between /selector and selector/1 etains the filter values, but not the search order (or the results per page).

So I would like to see the search order & selector 'remembered' so that linking with contextual filters retains the sort setting.

btw, I'm using views3 drupal7.8

Gaelan’s picture

Version: 6.x-3.x-dev » 7.x-3.x-dev

Don't have this in 7 either.

couturier’s picture

This issue is related: http://drupal.org/node/1290272

lendude’s picture

Two different customers requested this functionality, so made a little module that adds this.
Added a checkbox to the table settings where you can switch it on per view/display.

Tested it on 2 different sites, but with some fairly basic Views, so no idea if it will hold up to the more fancy stuff.

I put it in my sandbox

Len