How did the alphabet come in order?

by NaQu

This just came to mind.. When and how was it decided that the alphabet was gonna go a, b, c, d, e, f, g...? And when did vowels and consonants become a thing?

vhcngh