def get_idxs_in_correct_order(idx1, idx2):
    """First idx must be smaller than second when using upper-triangular arrays (matches, keypoints)"""
    if idx1 < idx2: return idx1, idx2
    else: return idx2, idx1