please just advice and suggestions
Quartz can be either igneous, metamorphic or sedimentary.
If you mean in terms of sequential processes it could be - Weathering or erosion to sand, transport by wind or water, deposition, compaction to sandstone, metamorphosis to quartzite, and possibly assimilation into magma.