The letters on a guitar should be in order from lowest to highest pitch. The order is typically E, A, D, G, B, E.
The lowest pitch is the 6th string, which is the thickest string. The highest pitch is the 1st string, which is the thinnest string.