From 5bc4b46aa56a37fd1539a5f74a06792d803284b1 Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Wed, 6 Sep 2017 16:18:14 -0500 Subject: COMMON: Add comparator for sorting ArchiveMemberList --- common/archive.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/common/archive.h b/common/archive.h index 9293b937af..d76d0c4966 100644 --- a/common/archive.h +++ b/common/archive.h @@ -53,6 +53,12 @@ public: typedef SharedPtr ArchiveMemberPtr; typedef List ArchiveMemberList; +struct ArchiveMemberListComparator { + bool operator()(const ArchiveMemberPtr &a, const ArchiveMemberPtr &b) { + return a->getName() < b->getName(); + } +}; + class Archive; /** -- cgit v1.2.3