working sorting by brand.statuses.count