responsiv / uploader-plugin

Collection of File Upload components for October
MIT License
62 stars 39 forks source link

Files not sorting #72

Closed evwerkz closed 1 year ago

evwerkz commented 2 years ago

https://github.com/responsiv/uploader-plugin/blob/f99eb6b74417d5779f5c7707a8ffd231ea440e70/traits/ComponentUtils.php#L95

I noticed that the files are not sorted by 'DESC' at all.

image

daftspunk commented 2 years ago

This is likely being overruled by the sort order in the relation definition where sort_order column takes priority. So in effect, the sort order is sort_order then id. We should probably remove this code to prevent confusion.