you do PCR to get a assortment of dna chains that terminate at random points along the sequenced length with a fluorescent nucleotide whose color reflects the base pair, you dump it onto a gel plate, and you turn on a charge and it sorts the fragments by length
the main difference is that the lightest-weight fragments are the ones who "sleep for longest" (i.e. travel furthest).