I will explain my question using simple example, cause I don't know to descrive it properly. If we have 2 numbers $\{a,b\}$, by comparing them, we get 3 possible combinations: $$a>b, \hspace{3pt} a<b, \hspace{3pt} a=b$$ For 3 numbers $\{a,b,c\}$ we get, $$b<a>c, \hspace{3pt} b>a<c, \hspace{3pt} a<b>c, \hspace{3pt} a>c<b, \hspace{3pt} \hspace{3pt} a=b=c, \hspace{3pt} a=b>c, \hspace{3pt} etc...$$
How to calculate how many combinations exist for n numbers.