diff --git a/src/structures/junction.cpp b/src/structures/junction.cpp index 0b8beb42..343ed24f 100644 --- a/src/structures/junction.cpp +++ b/src/structures/junction.cpp @@ -31,8 +31,9 @@ bool operator<(Junction const & lhs, Junction const & rhs) ? lhs.get_mate1() < rhs.get_mate1() : lhs.get_mate2() != rhs.get_mate2() ? lhs.get_mate2() < rhs.get_mate2() - : lhs.get_inserted_sequence() < rhs.get_inserted_sequence(); - // TODO (23.7.21, irallia): tandem_dup_count doesn't play a role here right? + : lhs.get_tandem_dup_count() != rhs.get_tandem_dup_count() + ? lhs.get_tandem_dup_count() < rhs.get_tandem_dup_count() + : lhs.get_inserted_sequence() < rhs.get_inserted_sequence(); } bool operator==(Junction const & lhs, Junction const & rhs)