Replies: 1 comment
-
In general, it would be neat if Craft could implement "natural" sorting with any elementCriteriaModel. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I dropped a ton of images into my assets folder, then used "Update Asset Indexes" to sync them all with Craft. But when they sync with Craft, they are not sorted in a natural order:
...
I'd imagine that this isn't an issue most of the time. However, in this case, I'm using a script to create the proper relationships between my existing entries and the new images. Unfortunately, my import script isn't capable of arranging these files in a "natural" order, since it's just iterating over the new images.
Is it possible to have the indexing script apply a natsort filter to the list of assets before indexing them in Craft?
Beta Was this translation helpful? Give feedback.
All reactions