Overload function

how u overload the > in two strings how u do that how u pass this in the sort function how u pass that?how u doing this please help me in this concept how u pass the compare ?