return difftime( p2->d.url.last_visit, p1->d.url.last_visit ) >= 0 ? 1 : -1;
return bm_compare_time( p2->d.url.last_visit, p1->d.url.last_visit );
static int bm_compare_last_visit_Asc( const void *elem1, const void *elem2 ){    BM_Entry *p2 = *(BM_Entry **)elem1;    BM_Entry *p1 = *(BM_Entry **)elem2;    if( p2->type != BM_TYPE_URL )    {        if( p1->type != BM_TYPE_URL )        {            return 0;        }        return -1;    }    else if( p1->type != BM_TYPE_URL )    {        return 1;    }        return difftime( p2->d.url.last_visit, p1->d.url.last_visit ) >= 0 ? 1 : -1;}