sort arguments before signing