re-order tasks in deploy hook