src/task.cpp
///////////////////////////////////
// compare a task to another task
compare a task to another task
compare a task to another task
bool Task::cmp(const Task &a, const Task &b)
{
    if (a.completed() != b.completed()){
        return a.completed() < b.completed();
    }
    return a.name.compare(b.name) < 0;
}
bool Task :: cmp ( const Task & a , const Task & b ) { if ( a . completed ( ) != b . completed ( ) ) { return a . completed ( ) < b . completed ( ) ; } return a . name . compare ( b . name ) < 0 ; }
compare a task to another task
compare a task to another task