Finshied `compare` and `compareSync`
Finshied `compare` and `compareSync`