Itse vertailu olisi
bool operator() (int a, int b) const { { return jasenet->anna(a).Avain() < jasenet->anna(b).Avain(); }