The genetic process that sorts DNA fragments according to its sizes is DNA gel electrophoresis. Based on the size of the DNA fragment or how many base pairs long it is, the fragment will move fast or slow through the medium as it is attracted to the positive charge