Cms: Make "Date Modified - Descending" the default sort order for assets

Created on 31 Jan 2017  Â·  7Comments  Â·  Source: craftcms/cms

Created by: Christian ([email protected]) on 2015/03/09 00:49:13 +0000
Votes at time of UserVoice import: 2


enhancement

Most helpful comment

> Posted by Jeroen Kenters ([email protected]) on 2015/03/20 14:15:17 +0000

This might be great for Assets Fields in case you have many assets inside a folder and the uploaded asset is not selected after uploading. By sorting them by date desc the uploaded Asset does get selected.

Related to: http://craftcms.stackexchange.com/questions/9704/when-uploading-an-asset-the-asset-is-not-selected-after-upload

All 7 comments

> Posted by Jeroen Kenters ([email protected]) on 2015/03/20 14:15:17 +0000

This might be great for Assets Fields in case you have many assets inside a folder and the uploaded asset is not selected after uploading. By sorting them by date desc the uploaded Asset does get selected.

Related to: http://craftcms.stackexchange.com/questions/9704/when-uploading-an-asset-the-asset-is-not-selected-after-upload

This definitely addresses one specific issue of finding and selecting your most recently uploaded assets but I would suggest this along with a setting to change the default sorting in settings. This would target the main concern I'm sure most people working in craft have but also give a tool that could solve any developers issue with asset/field sorting.

@angrybrad, @brandonkelly This is something we've had clients request. Is there any chance of it being implemented?

Added for the next release! Going with Date Uploaded rather than Date Modified, though. (Worth mentioning that indexes will always remember your last-selected setting though, so if you don’t like the default, all you have to do is change it, and it will stay that way each time you reload.)

@brandonkelly @angrybrad Can we also introduce this for Entries / Users?

For users who haven't sorted items yet, and therefore won't have a default set yet, I would assume the vast majority would want to see the most recent items first. However when you click the Date Modified / Last Login column, the first sorting order is oldest first. As a default I'm not sure how useful that is?

@jamiewade Good point. Entries’ Channel section sources were already sorted by Post Date - Descending by default, but only until a new sort option was selected. Going forward, all built-in element types’ date sort options will sort themselves in descending order by default when manually clicked on.

Craft 3.5.9 is out now with this change.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

davist11 picture davist11  Â·  3Comments

michaelhue picture michaelhue  Â·  3Comments

richhayler picture richhayler  Â·  3Comments

angrybrad picture angrybrad  Â·  3Comments

angrybrad picture angrybrad  Â·  3Comments