bool operator()(const FramePtr &leftFrame, const FramePtr &rightFrame) const { return leftFrame->getPriority() < rightFrame->getPriority(); }