//Compare functions for sortin hit list bool compare_cols(const Hit& lhs, const Hit& rhs){ if(lhs.get_col() < rhs.get_col()) return true; else{ return false; } }
//Only use this as the condition after first running a row sort bool compare_colsAfterRows(const Hit& lhs, const Hit& rhs){ //Only interested in subsorting if(lhs.get_row() == rhs.get_row()){ if(lhs.get_col() < rhs.get_col()) return true; else{ return false; } } return false; }