A profile field in site_user_list can be marked as sortable, but I need to be able to select one of these sortable fields as the default sorting when the user list is shown. The list is now shown by user registration time, which is not how I would like it.

P.S. As an alternative, I tried to make a menu item pointing to site_user_list?sort=asc&order=Naam, but Drupal seems to URL-encode all the separator characters, making the URL unusable.

Comments

pukku’s picture

I'm pretty sure it defaults to sorting by the first column, so if you use something other than UID as the first column, it should sort by that...

HTH,
Ricky

RingoDS’s picture

Ricky,

Thanks for the tip. I moved the "Last Name" column from the second to the first column and it sorts by default on that column now. I didn't know about that.

Still, I find it a miss that I couldn't set the "Last Name" column, when it is the second column, as the default sorting.

Ringo

pukku’s picture

Assigned: Unassigned » pukku
Status: Active » Fixed

Yes, I know that it should be possible to select a default sort column — right now, I'm pretty much swamped with a million other problems to fix at work, so I'm not really doing active development on modules right yet. When I do start adding new features, I will include this...

Ricky

Anonymous’s picture

Status: Fixed » Closed (fixed)