swap order of outputs and spends for indexer to be consistent.