SORTFUN(compCPU, NBCPU) SORTFUN_NB(compCache, CACHECPU, 0) REV_SORTFUN(compDiskRead, DISKACCESSREAD) int MyScheduler::aggregate(corba_response_t* aggrResp, size_t max_srv, const size_t nb_responses, const corba_response_t* responses) { ServerList candidates = CORBA_to_STL(responses, nb_responses); SORT(candidates, compCache); SORT(candidates, compCPU); SORT(candidates, compDiskRead); STL_to_CORBA(candidates, aggrResp); return 0; }This function returns a list sorted by increasing disk access for first criteria and by decreasing CPU number and decreasing CPU cache.