 the sorted lists.</p>
<p>NOTE: this stores a tuple (start, end, annid, object) in the sorted lists for the start
and end offsets
and uses a key function that returns which elements to use for sorting.</p>
<p>For the list sorted by start offset, we use the start offset and annotation id. For the end offset we use the
end offset of the annotation only.</p>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">&#34;&#34;&#34;
Module that provides a simple clas