I have no idea where you got that from. He said that they were "of type int".
It sounds to me like you want to just sort your array of structs by their priority member. Then you can just walk through the array in order to process them. This can easily be achieved through the use of qsort and a custom comparison function. I suggest you have at using qsort yourself and perhaps post the definition of your struct and your attempt at using qsort.