HydrogenAudio

Hosted Forums => foobar2000 => 3rd Party Plugins - (fb2k) => Topic started by: mjm716 on 2012-06-22 14:55:54

Title: Facets sort order vs Win7 sort order bug?
Post by: mjm716 on 2012-06-22 14:55:54
Hi,

I have a sort issue that I think may be a Facets bug. Facets doesn't follow the numerical sort settings in Win OS (versions > 2000), which can be found here:

run>gpedit.msc>USER Config>Administrative Templates>Windows Components>Windows Explorer>turn off numerical sorting in Win Explorer

for example the following folder sort order is what I see in Win Explorer (I have the above Win setting enabled):

01
02
03
04
05
111
13
1C
22
23
31
3A
44

however facets still sorts as:
01
1C
02
03
3A
04
05
13
22
23
31
44
111

am I missing something in a Facets preference maybe?

Title: Facets sort order vs Win7 sort order bug?
Post by: ruebe on 2012-06-22 15:14:50
i guess facets doesn't care whatever sort order you specify in the registry but only what you put into preferences > media library > facets > default sorting order
Title: Facets sort order vs Win7 sort order bug?
Post by: mjm716 on 2012-06-22 15:41:14
i guess facets doesn't care whatever sort order you specify in the registry but only what you put into preferences > media library > facets > default sorting order


Unfortunately, it's not what is *in* the default order, it's *how* it's sorted that seems to be the problem [bug]
Title: Facets sort order vs Win7 sort order bug?
Post by: ruebe on 2012-06-22 15:43:38
what did you put there?
Title: Facets sort order vs Win7 sort order bug?
Post by: BenB on 2012-06-22 16:40:32
I understand what you want Facets to do, but I'm curious to know why you want it to. Perhaps there's another way to do what you're ultimately trying to achieve, but we'd need to know what that is to help you.

I wouldn't call this a bug. Sorting is defined in foobar in more than one place, and some components have the capability to define a sort. I'd assume that if a sort were left undefined, it would default to a sort defined by the component's developer or it would inherit a sort defined in foobar.
Title: Facets sort order vs Win7 sort order bug?
Post by: mjm716 on 2012-06-22 19:06:30
I understand what you want Facets to do, but I'm curious to know why you want it to. Perhaps there's another way to do what you're ultimately trying to achieve, but we'd need to know what that is to help you.

I wouldn't call this a bug. Sorting is defined in foobar in more than one place, and some components have the capability to define a sort. I'd assume that if a sort were left undefined, it would default to a sort defined by the component's developer or it would inherit a sort defined in foobar.


thanks, whether I leave the facets default sort order empty or use something like %path_sort% the result is the same.

It does not inherit the sort style of my Win7 default setting. Perhaps it is inheriting it from somewhere else within foobar?

Again, refer to my example above how my Win Explorer actually sorts (correct) and how Facets is sorting (incorrect).
Title: Facets sort order vs Win7 sort order bug?
Post by: kode54 on 2012-06-22 19:19:32
That Group/Local Policy setting obviously only applies to Explorer itself, not any applications that use the relevant Win32 function for string comparison when sorting.
Title: Facets sort order vs Win7 sort order bug?
Post by: mjm716 on 2012-06-22 20:24:39
That Group/Local Policy setting obviously only applies to Explorer itself, not any applications that use the relevant Win32 function for string comparison when sorting.


superb reply and explains it! 

but now any lead toward how to apply such a sort default beyond explorer?
Title: Facets sort order vs Win7 sort order bug?
Post by: kode54 on 2012-06-22 21:07:02
Add an API to the player, and make a switch for it, I guess. Currently, several things just use StrCmpLogicalW directly, which has no switch.