Czyli chcesz się dowiedzieć jak w c++ się sortuje.
#include <bits/stdc++.h>
struct Osoba
{
string imie;
int pkt = 0;
};
bool comp(const Osoba&os1, const Osoba&os2)
{
return os1.pkt < os2.pkt;
}
int main()
{
vector<Osoba> osoby;
/// jakos tworzysz/wczytujesz te osoby
sort(osoby.begin(), osoby.end(), comp); /// i to sortuje porównując za pomocą funkcji comp
}