KnownPluginList duplicates folder entries when they differ by case

KnownPluginList duplicates entries when they differ by case. Soundtoys for example sets their manufacturer name as
’Soundtoys’ and ‘SoundToys’ So my plugin list looks like this:

Soundtoys >
SoundToys >
Soundtoys >
SoundToys >
Soundtoys >
SoundToys >
Soundtoys >
SoundToys >
Soundtoys >
SoundToys >
Soundtoys >
SoundToys >
Soundtoys >
SoundToys >
Soundtoys >
SoundToys >
Soundtoys >
SoundToys >

Instead of just having a folder for each case of soundtoys

To fix this can you either:

Make the PluginSorter::compareElements() case sensitive when it is sorting. So each case will get it’s own folder.

Or, in PluginTreeUtils::buildTreeByCategory change

if (thisType != lastType)

to

if (thisType.toLowerCase() != lastType.toLowerCase())

so that categories that only differ by case get put into the same folder.

There’s a better method: String::equalsIgnoreCase

Also, isn’t it the manufacturer’s responsibility to sort out their casing? Seems like a good way to shame them. :slight_smile:

They probably should, but in the mean time my menu shouldn’t look like this:

Audio plugin host does it too:

A fix will appear on the develop branch shortly.

1 Like

Awesome, thx.

Here is some more text to get to 20 characters.