explicit comparison to ensure marginal counts always sort first in the output
better comparison