if(a == NULL && b == NULL) { return 0; }
gint sort_rsc_priority(gconstpointer a, gconstpointer b){	const resource_t *resource1 = (const resource_t*)a;	const resource_t *resource2 = (const resource_t*)b;	if(a == NULL) { return 1; }	if(b == NULL) { return -1; }  	if(resource1->priority > resource2->priority) {		return -1;	}		if(resource1->priority < resource2->priority) {		return 1;	}	return 0;}