I am comparing two strings in python

i am using comparision operator

a=“Agf”
b=“yfg”
a > b
it is showing output false
What is the logic behind it