Allow to sort by link field in Views 2

stacysimpson - February 6, 2009 - 15:23
Project:Link
Version:6.x-2.6
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

I have a view setup to display information in table format; however, there is no checkbox available to tell the system to allow users to sort by the link field. (NOTE: I would like to allow people to sort by the link title, not the URL.) Has anyone else seen this behavior?

#1

stacysimpson - February 6, 2009 - 15:34

Whoops, nevermind. I see that I have 'grouping' set.

#2

stacysimpson - February 6, 2009 - 16:27

Well, looks like sorting by link title is still not available by default. We should make this a configurable option.

#3

stacysimpson - February 9, 2009 - 14:44

To clarify, I'm referring to click sorting of table columns. The built-in view sorting method does sort by link title.

#4

silentway - October 19, 2009 - 23:36
Version:6.x-2.5» 6.x-2.6

Confirmed.

To further clarify: A field of type "link", when shown in a View, will sort by the URL rather than by the title. Expected behavior should be to sort by Title.

Additional request: add option to sort by URL or Title.

But for me, it does not matter if the view column is set to be click-sortable. (under Basic Settings, Style (Table), "gear icon" options) Either sortable or not, it still sorts by URL.

Confirmed with the following configuration:

Drupal 6.13
Link 6.x-2.6
CCK 6.x-2.4
(rest of the install is acquia-drupal-1.2.15.5086)

other settings:
URL is set as optional in the field's global settings.
Link Title is set to "required."

#5

dropcube - November 5, 2009 - 05:04
Title:Unable to sort by link field in Views 2» Allow to sort by link field in Views 2
Category:bug report» feature request
 
 

Drupal is a registered trademark of Dries Buytaert.