• Igor Babaev's avatar
    The implementation of the template bubble_sort assumed · 2e4bd440
    Igor Babaev authored
    that the call-back comparison function returns a positive
    number when arg1 < arg2, and a negative number when arg1 > arg2.
    This is not in line with other implementation of sorting
    algorithm.
    Changed bubble_sort: now a negative result from the comparison
    function means that arg1 < arg2, and positive result means
    that arg1 > arg2.
    Changed accordingly all call-back functions that are used as
    parameters in the call of bubble_sort.
    
    Added a test case to check the proper sorting of window functions.
    2e4bd440
opt_table_elimination.cc 56.9 KB