Sorting data from service before displaying.