1

Possible Duplicate:
C++ struct sorting

Is it possible to sort a vector in C++ according to a specified sorting method, like used in Java's Collections.sort that takes a Comparator?

Community
  • 1
  • 1
dmessf
  • 1,005
  • 3
  • 11
  • 19

2 Answers2

0

Yes. See the answers to this question from this morning: C++ struct sorting

Community
  • 1
  • 1
Fred Larson
  • 58,972
  • 15
  • 110
  • 164
0

Yes, it is. Take a look here for an example.