[#TxGraph-CompareMainOrder]
= xref:TxGraph.adoc[TxGraph]::CompareMainOrder
:relfileprefix: ../
:mrdocs:

Compare two transactions according to their order in the main graph&period; Both transactions must be in the main graph&period; The main graph must not be oversized&period;

== Synopsis

Declared in `&lt;txgraph&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
std::strong&lowbar;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&apos;s linearization&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *a*
| First transaction to compare&period;
| *b*
| Second transaction to compare&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
