add a function compare in symbol which make use of the integer value of symbol type