I don't think it really matters so long as we are not talking like 10 mins before or after. You definitely want to have some time between eating and then exercising and I think the recommended time is about an hour and I have always assumed this is because your body is breaking down the fuel consumed and getting it to where it is needed so it needs some time to do this without you giving it another set of instructions. Not much is said how long to wait after exercising before your next meal. I have read that you should also wait about an hour at that point as you body is still burning fuel and by eating you will halt the process. However, I do not know how true that is, there are all sorts of things you can read on the internet that may not be factual!
I do find after cardio done around lunch time I am ravenous and have my lunch usually within about 30 mins of completing the exercise. But then I eat every 2-3 hours so at that point I am good and ready for my next meal.