get the data sorted by brand and user