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 |
Jump to:
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
Whoops, nevermind. I see that I have 'grouping' set.
#2
Well, looks like sorting by link title is still not available by default. We should make this a configurable option.
#3
To clarify, I'm referring to click sorting of table columns. The built-in view sorting method does sort by link title.
#4
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