COMMON: Add comparator for sorting ArchiveMemberList

This commit is contained in:
Colin Snover 2017-09-06 16:18:14 -05:00
parent b5e801379f
commit 5bc4b46aa5

View File

@ -53,6 +53,12 @@ public:
typedef SharedPtr<ArchiveMember> ArchiveMemberPtr;
typedef List<ArchiveMemberPtr> ArchiveMemberList;
struct ArchiveMemberListComparator {
bool operator()(const ArchiveMemberPtr &a, const ArchiveMemberPtr &b) {
return a->getName() < b->getName();
}
};
class Archive;
/**