C++ (Vector pair sorting w.r.t to second value)

hello guys can anyone help me with sorting of vector pair w.r.t to second value, this concept is very important in matrix and arrays. hoping that you guys will help me

2 Likes