adding decent invoice sorting