added table ordering to quotes and orders