Custom Sort Method for STL Pair Template