Which is the correct order of the processes responsible for the formation of sedimentary rocks?

weathering, cementation, deposition

erosion, deposition, compaction

cementation, compaction, erosion