From 7d89e4de23ba7132f87f86dd569c4e271c55b83b Mon Sep 17 00:00:00 2001 From: Talley Lambert Date: Sun, 12 Jun 2022 08:53:09 -0400 Subject: [PATCH] use _writer key --- npe2/_plugin_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/npe2/_plugin_manager.py b/npe2/_plugin_manager.py index 513458a6..47062326 100644 --- a/npe2/_plugin_manager.py +++ b/npe2/_plugin_manager.py @@ -169,7 +169,7 @@ def _writer_key(writer: WriterContribution) -> Tuple[bool, int]: nbounds = sum(not c.is_zero() for c in writer.layer_type_constraints()) return (no_ext, nbounds) - yield from candidates + yield from sorted(candidates, key=_writer_key) class PluginManagerEvents(SignalGroup):