How two pointer are been compared in C

"I am currently a Software Engineering student at ALX. I'm passionate about technology and enjoy conducting research to find answers on my own. I have a natural inclination to ask 'WHY' more often than 'HOW'.
"While working on projects at ALX, I have acquired a wealth of interesting and diverse knowledge about software engineering and computer science in general. Therefore, I needed a place to store and save all this information, allowing me to refer back to it whenever I forget."
When comparing two pointers, the comparison is based on the memory addresses they are pointing to.
I found about this when studying alias, so I will use alias example
when two pointers point to the string in a memory address, the pointer farther in the string, is the greater one
ls='ls --color=auto'
if p1 points to '='(first '=') and p2 points to 'l'(first l) then p2 < p1



