The vertical and progressive sorting of a sedimentary deposit by grain size. There are two main types: normal grading (coarsest particles at the base progressively fining upward; the most common), and inverse grading (finest particles at the base progressively coarsening upward).