getavalon / core

The safe post-production pipeline - https://getavalon.github.io/2.0
MIT License
213 stars 48 forks source link

Creator tool instance list sorting by label as opposed to class name #508

Closed BigRoy closed 4 years ago

BigRoy commented 4 years ago

Issue

It seems currently the Plug-ins in the Creator tool are sorted by the class name, however that looks fairly odd in the Creator tool when they are labeled differently.

class Plugin1(api.Creator):
    label = "D"
    family = "D"

class Plugin2(api.Creator):
    label = "B"
    family = "B"

class Plugin3(api.Creator):
    label = "A"
    family = "A"

class Plugin4(api.Creator):
    label = "C"
    family = "C"

In the creator tool these would currently sort by the class name, making it:

D
B
A
C

They are sorted like this by api.discover in Creator tool which sorts by class name here.

I believe visually it would make more sense to sort the list by visual name in the UI, which would be the label when defined.

Is there a reason to be against sorting by the label and preserve current behavior?