Closed (fixed)
Project:
Link
Version:
5.x-2.1
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
13 Feb 2008 at 08:34 UTC
Updated:
20 Jun 2008 at 03:12 UTC
Is it possible to sort by a link field in a view? I don't see the link field in the Add Sort Criteria dropdown list. I'm using Drupal 5.2.
Thanks
Comments
Comment #1
quicksketchNot currently. This is mostly because link module allows for a variety of inputs such as
http://google.com,google.com, ornode/1. Sorting wouldn't make sense in a lot of cases. Other than that, I simply haven't implemented the feature.Comment #2
asugene commentedHaving this feature would also help me. I would like to create a view Augment based on this link field. If the views sort and augment was based on the link "title" and not the "target" I believe the views integration can work.
Comment #3
asugene commentedI would like to sort and use a view augment based on the link field. If they were focused on the "title" and not the "target" would be a good solution.
Comment #4
quicksketchI added the sort functionality to link URLs, but you'll find it's only useful so long as you're consistent with using "http://" in front of your entered URLs. But since it was practically a one-line change, I figured it's not going to hurt putting it in there.
Here's the commit. It'll be included in 2.2.
http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/link/link.m...
Comment #5
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.