refactor compare method for bigpipe-order attribute