Closed (fixed)
Project:
ImageField
Version:
5.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Anonymous (not verified)
Created:
9 Jan 2009 at 14:51 UTC
Updated:
16 May 2024 at 00:49 UTC
Jump to comment: Most recent
Comments
Comment #1
quicksketchYou can already do this. Add a relationship for the ImageField you want to sort by file name by clicking + (plus) in the relationships section, then add the relationship "Content: [Label of field] (field_[name_of_field])". Now under sorts, click + (plus) and then add a sort for File: Filename.
Comment #2
Anonymous (not verified) commentedThanks for that! It took me a while to remember what site I was talking about back then ;)
I didn't think about using relationships for sorting... only ever used them for filters.
That works well!
Comment #4
rhimes commentedhow would you do this in 5.x-2.x versions, views 5.x-1.x?
Comment #5
quicksketchYou cannot sort by filename in Views 5.x afaik. Views in Drupal 5 does not have relationships, so you're restricted to whatever sorts ImageField provided. New features will not be added to the 5.x version to add this functionality.
Comment #6
quicksketch