[OE-2920] Fixed sort/dedupe problems on workflow step