How to re-order signatures