Completed code for altering invoice rows order.