The kind of food one eats and even the order in which it is consumed can affect the risk of developing type 2 diabetes.