An electromagnetic radiation sorting device comprises an image sensor having an imaging plane; a substrate layer positioned adjacent to and spaced a distance from the imaging plane of the image sensor such that the imaging plane of the image sensor is in the Fresnel near field; and a functional layer coupled to the substrate layer, the functional layer having a structure that is configured to sort incoming electromagnetic radiation according to frequency by imparting orbital angular momentum and linear momentum on the incoming electromagnetic radiation.