The primary job of any pair of sunglasses or shades is to protect the eyes from the sun's glare therefore the issue of U.V. or ultraviolet rays protection is the most important feature to be considered when buying a pair.
I always go for the branded ones (RayBan, Oakley, Rudy Project) not because I want to impress my friends but because I can be sure that they can offer the best U.V. protection. They are pricey, yes, but quality ain't cheap and I can't put a price on my eyes .