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,025
  • 3
  • 11
  • 19

2 Answers2

0

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

Community
  • 1
  • 1
Fred Larson
  • 60,987
  • 18
  • 112
  • 174
0

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