title: Sorting a vector of custom objects
body: <p>How does one go about sorting a vector containing custom (i.e. user defined) objects.<br>
  Probably, standard STL algorithm <strong>sort</strong> along with a predicate (a function or a function object) which would operate on one of the fields (as a key for sorting) in the custom object should be used.<br>
  Am I on the right track?</p>