According to the docs...
http://www.cppreference.com/cpplist/sort.html
There is a parameter to the std::list.sort method.
I don't understand this methods use...
I want to sort the list which is a list of points x,y,z.
I have three points involved in the sort...
The two points the sort algorithm is providing for comparison
and a refrence point. I want the list sorted by in order of closest
to refrence point. (Euclidian distance)
I suppose I need a class to represent the points
and an operator<, which knows about the refrence point...
Am I going about this the right way?
Help?