We demonstrate passive sorting of emulsion microdroplets based on differences in their interfacial tension and contact angle. The sorted droplets are flowing inside a microfluidic channel featuring a shallow guiding track (depth similar to 0.6 mu m) defined by femtosecond laser micromachining in polydimethylsiloxane coating deposited on glass. Under these flow conditions, the droplets experience a confinement force that pulls them into the track; this force depends on the interfacial tension and the difference between the contact angles inside and outside the ablated track. The interplay between the confinement force, fluid drag, and wall friction then determines the trajectory of the droplet along the guiding track. We investigate experimentally the droplet trajectory as a function of droplet velocity and angle between the track and the channel axis and demonstrate precise control of droplet direction by adjusting the track angle. Moreover, we show that droplets of liquids with different interfacial tensions and contact angles travel different distances along the guiding track at a constant flow rate, which can be used for droplet sorting. We develop a theoretical model that incorporates the droplet position with respect to the ablated track, interfacial tension, and contact angles to predict the droplet trajectory under given experimental conditions. Thus, the dynamic behavior of the droplets leading to different guiding scenarios can be studied without the need of computationally expensive fluid dynamics simulations. The presented study paves the way for designing and optimizing new systems for advanced manipulation of droplets of different content using potentially reconfigurable guiding tracks.