예제 #1
0
bool compare_rows(const Hit& lhs, const Hit& rhs){
	
	if(lhs.get_row() < rhs.get_row())
		return true;
	else{
		return false;
	}
}
예제 #2
0
//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;
}