title: How to sort set of coordinates in ascending order by distance from point ( x1,y1)?
body: <p>I have <code>std::set&lt;std::pair&lt;float,float&gt;&gt;</code> which represents points on map ( 2d , x and y value) and I have one point with values x1 and y1. How to sort set in ascending order by distance from point ( x1,y1) ?</p>