def marker_sorted(markers, matches):
 return sorted(markers, key=cmp_to_key(marker_comparator(matches, markers)))

def marker_sorted ( markers , matches ) : return sorted ( markers , key = cmp_to_key ( marker_comparator ( matches , markers ) ) )
sort markers from matches .