From what I've been told, GUC and miles upgrades go into the same priority waitlist 'bucket', so its ordered by status, fare, and time of request.
Assuming that is correct...
The first case would go to the higher fare
The second case would go to whoever requested to be put on the waitlist first.