getIndex seems like it should not be a concern of the ChainrEntry but should be a concern of the ChainrSpec.  The ChainrSpec is the only place that knows of any type of order related to ChainrEntries.