Good day. I have a table as shown in the image below. Using Eloquent model (Query builder too will do) I want to be able to select only unique cases with the suit number, and at the same time order by the case that have the highest occurrence down to the lowest occurrence.
For example, in this image below, since "CA/E/14/2011" has occurrence of 3,I only want to select a distinct value, hence my query should return two cases. "CA/E/14/2011" and "CA/A/344/2015" but "CA/E/14/2011" should come first because it has higher occurrences.