Compares two intervals according to their staring time . This is needed for sorting the intervals using library goo . gl / iGspV function std :: sort ( ) . See http :
bool compareInterval ( Interval i1 , Interval i2 ) { return ( i1 . start < i2 . start ) ? true : false ; }