Comment trier QList & lt; MyClass * & gt; en utilisant la bibliothèque Qt (peut-être qSort ())?

class MyClass {
  public:
    int a;
    bool operator<(const MyClass other) const {
        return a<other.a;
    }
    ....
};
....
QList<MyClass*> list;

source d'informationauteur kuzmich