Page 1 of 1

Media Page - Scenes not sorting properly

PostPosted: Sat Dec 26, 2020 4:39 am
by simontrudeau
When sorting the Scenes from low to high (or high to low) Resolve sorts them in a weird way.
It will sort like this

0 - 1 - 10 - 2 - 3 - 4 - 40 - 5

Almost like if it was prioritizing the first digit, regardless of what follows.

Davinci Resolve Studio 17 VERSION 17.0B BUILD 18
Windows 10

Re: Media Page - Scenes not sorting properly

PostPosted: Sat Dec 26, 2020 7:28 am
by Peter Cave
You do need to use leading zeros to get the sort order correct.

Re: Media Page - Scenes not sorting properly

PostPosted: Sat Dec 26, 2020 7:09 pm
by Hendrik Proosa
This is how alphabetical sort works, do what Peter suggested.

Re: Media Page - Scenes not sorting properly

PostPosted: Sat Dec 26, 2020 8:51 pm
by kalain
Peter Cave wrote:You do need to use leading zeros to get the sort order correct.

No need to do this under Win10 in file explorer.
W10 sort naturally as S1, S3, S10 not S1, S10, S3.
No need to add 0 like S01, S03, S10...
What about is you get later S100 file ?
Do you have to add one more 0 before...

Getting around is an answer but do not solve the real problem....

Re: Media Page - Scenes not sorting properly

PostPosted: Sat Dec 26, 2020 9:55 pm
by Hendrik Proosa
You can’t use win file explorer in Resolve, and it doesn’t solve the same problem in gazillion other places that don’t do smarts for sorting.

This is solved by anticipating the number of digits for your token and padding it appropriately. If you anticipate going to hundreds you do 001 and so on. It works the same with a lot of things, version numbers, shot codes, frame numbers and so on for example. And as a hint, for nonsequentially produced codes (as opposed to versions and frame numbers), use bigger step size, 10 for example, to anticipate stick-ins. Then you can do 010-015-020 instead of some abomination like 010-010a-011

Re: Media Page - Scenes not sorting properly

PostPosted: Sun Dec 27, 2020 2:46 am
by simontrudeau
Thanks for all the tips. I will add leading zero.

Re: Media Page - Scenes not sorting properly

PostPosted: Sun Dec 27, 2020 6:32 am
by kalain
Well, natural sorting order solve this problem. (compares to alphabetic order)