summaryrefslogtreecommitdiff
path: root/src/gtk/entitysummary.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/gtk/entitysummary.cc')
-rw-r--r--src/gtk/entitysummary.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gtk/entitysummary.cc b/src/gtk/entitysummary.cc
index c4efc66e..bc651488 100644
--- a/src/gtk/entitysummary.cc
+++ b/src/gtk/entitysummary.cc
@@ -238,10 +238,12 @@ namespace gui
struct compare_provider_lists_by_name
{
+ pkg_name_lt base;
+ public:
bool operator()(const std::pair<pkgCache::PkgIterator, std::vector<pkgCache::VerIterator> > &p1,
const std::pair<pkgCache::PkgIterator, std::vector<pkgCache::VerIterator> > &p2) const
{
- return strcmp(p1.first.Name(), p2.first.Name()) < 0;
+ return base(p1.first, p2.first);
}
};
}