umbraco / Umbraco-CMS

Umbraco is a free and open source .NET content management system helping you deliver delightful digital experiences.
https://umbraco.com
MIT License
4.41k stars 2.66k forks source link

Media sort not working properly in Umbraco.Multi URL picker #16277

Open petrus2-365-bank opened 4 months ago

petrus2-365-bank commented 4 months ago

Which Umbraco version are you using? (Please write the exact version, example: 10.1.0)

Umbraco 13.2.2

Bug summary

When I am in Media tab, sorting media throw filter "Last edited" is working correctly. But, I found that when selecting media via Umbraco.Multi URL picker in Content part is sorting working not correctly over filter 'Last Updated'. The most recently edited / added media will not appear at the top. I cannot see error in console.

Specifics

https://github.com/umbraco/Umbraco-CMS/assets/129747239/7e2566eb-5720-4cf2-90a6-7e2f93d46b38

From 30 seconds

Steps to reproduce

Upload some media. Create some Template with Umbraco.MultiURLpicker input Create Content with that Template Before insert media to Umbraco.MultiURLpicker input, try to sort it throw filter "Last edited".

Expected result / actual result

sorting media by "Last edited" datetime

github-actions[bot] commented 4 months ago

Hi there @petrus2-365-bank!

Firstly, a big thank you for raising this issue. Every piece of feedback we receive helps us to make Umbraco better.

We really appreciate your patience while we wait for our team to have a look at this but we wanted to let you know that we see this and share with you the plan for what comes next.

We wish we could work with everyone directly and assess your issue immediately but we're in the fortunate position of having lots of contributions to work with and only a few humans who are able to do it. We are making progress though and in the meantime, we will keep you in the loop and let you know when we have any questions.

Thanks, from your friendly Umbraco GitHub bot :robot: :slightly_smiling_face:

NguyenThuyLan commented 1 month ago

Hi @petrus2-365-bank , thank for reporting this. I can reproduce it on v13. Reason: The sort feature on "Last Updated" column is handled on Frontend. Because value of Last Updated is a string, not datetime type, so Last Updated value columns are sorted by Alphabet.

image