Well, for once what you post is not valid C++. Why don't you copy and paste from your source code instead?
Second, if that's your signature for operator<(), then that is most likely the reason. The operator<() used by sort is booloperator<(const A&) const;.
So double check your operator's prototype, but above all, you should have posted valid C++ in the first place. Now we are unsure if what you show reflects your problem accurately enough or not.