I think the answer is that in order to find the mode of a set of data you work with it before you sort it into bins.
Let's say you have permissible data values yj.
You take samples and observe nj occurrences of each yj
The mode of this data set is the yk such that nk is the maximum of all the nj's
Mode (statistics) - Wikipedia, the free encyclopedia