src/types/PerformanceTable.cpp
// OPTI could be optimized by using other sort methods if necessary
OPTI could be optimized by using other sort methods if necessary
OPTI could be optimized by using other sort methods if necessary
void PerformanceTable::sort(std::string mode) {
  this->changeMode(mode);
  for (std::vector<Perf> &pv : pt_) {
    std::sort(pv.begin(), pv.end(),
              [](const Perf &a, const Perf &b) { return a.value_ < b.value_; });
  }
  sorted_ = true;
}
void PerformanceTable :: sort ( std :: string mode ) { this -> changeMode ( mode ) ; for ( std :: vector < Perf > & pv : pt_ ) { std :: sort ( pv . begin ( ) , pv . end ( ) , [ ] ( const Perf & a , const Perf & b ) { return a . value_ < b . value_ ; } ) ; } sorted_ = true ; }
OPTI could be optimized by using other sort methods if necessary
OPTI could be optimized by using other sort methods if necessary
// ensure the right state