Hello

do something like this
a,b,c
d = a-b;
get MSB of d
if(MSB)
no is +ve and a>b and so compare a and c
else
no is -ve and a<b so compare b and c in similar fashion.

Thanks
Shabbir Bhimani