How to order result of groupby

I have problem in order result of groupby

Blockquote {

var(func:has(evt_country))@filter(uid_in(project_uid, 0xe230)) @groupby(evt_country) {
t as count(uid)
}
res(func:uid(t), orderasc:val(t) ){
val(t)
}

}

this my query but I got error " Vars can be assigned only when grouped by UID attribute" because evt_country it’s not an uid