From 933335719b75bdd057b4f0288957232e78260b03 Mon Sep 17 00:00:00 2001 From: Jakub Kadlčík Date: Apr 22 2019 20:51:15 +0000 Subject: [frontend] sort outdated chroots by name; fix #593 --- diff --git a/frontend/coprs_frontend/coprs/models.py b/frontend/coprs_frontend/coprs/models.py index 391aa14..b0e0cd2 100644 --- a/frontend/coprs_frontend/coprs/models.py +++ b/frontend/coprs_frontend/coprs/models.py @@ -372,7 +372,8 @@ class Copr(db.Model, helpers.Serializer): @property def outdated_chroots(self): - return [chroot for chroot in self.copr_chroots if chroot.delete_after] + return sorted([chroot for chroot in self.copr_chroots if chroot.delete_after], + key=lambda ch: ch.name) @property def active_chroots_grouped(self):