The wavelength dependence in the grating equation shows that the grating separates an incident polychromatic beam into its constituent wavelength components, i.e., it is dispersive.
When groove spacing is less than half the wavelength of light, the only present order is the m = 0 order.