diff --git a/code/FBXDocument.cpp b/code/FBXDocument.cpp index 4398e01f3..b2c84d795 100644 --- a/code/FBXDocument.cpp +++ b/code/FBXDocument.cpp @@ -642,7 +642,7 @@ std::vector Document::GetConnectionsBySourceSequenced(uint64_ temp.push_back((*it).second); } - std::sort(temp.begin(), temp.end(), std::mem_fun(&Connection::CompareTo)); + std::sort(temp.begin(), temp.end(), std::mem_fun(&Connection::Compare)); return temp; // NRVO should handle this } @@ -661,7 +661,7 @@ std::vector Document::GetConnectionsByDestinationSequenced(ui temp.push_back((*it).second); } - std::sort(temp.begin(), temp.end(), std::mem_fun(&Connection::CompareTo)); + std::sort(temp.begin(), temp.end(), std::mem_fun(&Connection::Compare)); return temp; // NRVO should handle this } diff --git a/code/FBXDocument.h b/code/FBXDocument.h index 2ec784237..32f34fad2 100644 --- a/code/FBXDocument.h +++ b/code/FBXDocument.h @@ -439,6 +439,10 @@ public: return 0; } + bool Compare(const Connection* c) const { + return InsertionOrder() < c->InsertionOrder(); + } + public: uint64_t insertionOrder;