Personally, I think that tool is useless. They are just assuming that those on the bid are sells and those on the ask are buys - I have seen my buys come up on that thing as a sell - I don't know why the heck anyone would even use that as a useful instrument, but to answer your question, here is the explanation:
The 'Buy', 'Sell' and '?' columns - Where the 'Price' is closest to the 'Offer' price, the trade is considered a 'Buy'. Where it is closest to the 'Bid' price, the trade is considered to be a 'Sell'. Where it is dead centre between 'Bid' and 'Offer', it appears in the '?' column; this indicates that the trade cannot be identified as either a 'Buy' or a 'Sell'.