Fix for sorting in Toolbox.create_signature function