Sort descending on count for masks