Working with many instances in the GUI list, can be difficult when they are sorted by the collectors. I’m sorting the context
here by family and name;
import pyblish.api
class CollectSorting(pyblish.api.Collector):
order = pyblish.api.Collector.order + 0.4
def process(self, context):
context[:] = sorted(context,
key=lambda instance: (instance.data("family"),
instance.data("name")))
Question is whether we would wanted this by default in Pyblish?