Tiebreak clustering on bankid and template index
Resolves #45 (closed).
As described in #45 (closed), this MR adds a few arbitrary tie-breaks to guarantee determinism in finalsink clustering. We tiebreak in the following order:
- cohsnr
- end_time (earliest)
- bankid
- tmplt_idx
On Daniel's suggestion, the new comments don't mention that each bank has precisely '1000' templates, since we might want to change that in future.