P22 Fixed

Fixed the sort issue with P22.  std::sort(RanIt _Lt, RanIt _Rt) assumed
sort < is a C++11 function, std::sort(RanIt _Lt, RanIt _Rt,
userdefinedsort) is a C++0x sort.  I use VS2010, so I cannot use C++11
features.