now bionentity counts are sorted by count. Also applied some minor styling and corrected some tests.