2.8 - selecting object in collections?
What you want is synchronized selection between the outliner and the 3D View.

It is called "Sync Selection" and is default behavior for the Blender 2.81, I don't think it is available in previous versions, as far as I know.

You can toggle it on or off from the outliner Filter popover.