src/latency_compensation.cc
// sort circuit by the gates' cycle attribute in non-decreasing order
sort circuit by the gates' cycle attribute in non-decreasing order
sort circuit by the gates ' cycle attribute in non - decreasing order
static void lc_sort_by_cycle(ql::circuit *cp)
    {
        std::stable_sort(cp->begin(), cp->end(), lc_cycle_lessthan);
    }
static void lc_sort_by_cycle ( ql :: circuit * cp ) { std :: stable_sort ( cp -> begin ( ) , cp -> end ( ) , lc_cycle_lessthan ) ; }
sort circuit by the gates' cycle attribute in non-decreasing order
sort circuit by the gates ' cycle attribute in non - decreasing order
// std::sort doesn't preserve the original order of elements that have equal values but std::stable_sort does