From some recently studies, sweet food will develop the myopia, because the metabolism process will need a lot of vitamin B1 which is the necessary nutrient of eyes. The garlic and stimulated food such as pepper, onion, ginger etc. are also bad to your eyes when you have sore eyes. And the other hand, the green vegetables and carrot, spinach, celery, broccoli, sesame, such fresh plants product will be good for your eyes. More water and more relax will also help your eyes get better.
If you have sore eyes, you shall avoid some spicy food or stimulating food which may make your sore eyes more serious. In details, onions, radishes, lentils, anything organic are what you should avoid. Besides perogis, popcorn, chewing gum (sugar free) and snakes are not recommended to eat for the sake of your sore eyes.
If you feel pain in your eyes, you'd better not eat the stimulating or spicy food. What's most forbidden food is the garlic which may raise your irascibility. Then, your eyes may feel dry, indirectly causing the uncomfortable feeling. However, you should eat more food with vitamin A, like carrot, to add the water inside your body. Thus your eyes will feel better.