[#TxGraph-CompareMainOrder] = xref:TxGraph.adoc[TxGraph]::CompareMainOrder :relfileprefix: ../ :mrdocs: Compare two transactions according to their order in the main graph. Both transactions must be in the main graph. The main graph must not be oversized. == Synopsis Declared in `<txgraph.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual std::strong_ordering CompareMainOrder( xref:TxGraph/Ref.adoc[Ref] const& a, xref:TxGraph/Ref.adoc[Ref] const& b) noexcept = 0; ---- == Return Value The ordering of a relative to b in the main graph's linearization. == Parameters [cols="1,4"] |=== | Name| Description | *a* | First transaction to compare. | *b* | Second transaction to compare. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#