CSS Property:
flex-direction:

Result:
A
B
C
D
E
F
CSS Code:
#main {
  display: flex;
  flex-direction:row-reverse;
}
Click the property values above to see the result
W3Schools.com - Play it