guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

03/05: Change the sort order for derivations on the package version page


From: Christopher Baines
Subject: 03/05: Change the sort order for derivations on the package version page
Date: Mon, 23 Mar 2020 05:14:28 -0400 (EDT)

cbaines pushed a commit to branch master
in repository data-service.

commit e108ed34e2887ec0f0c5758e686ea47048a86be2
Author: Christopher Baines <address@hidden>
AuthorDate: Sat Mar 21 10:54:57 2020 +0000

    Change the sort order for derivations on the package version page
    
    Put the non-cross built derivations first.
---
 guix-data-service/model/derivation.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/guix-data-service/model/derivation.scm 
b/guix-data-service/model/derivation.scm
index 79bd922..2ff2a97 100644
--- a/guix-data-service/model/derivation.scm
+++ b/guix-data-service/model/derivation.scm
@@ -169,7 +169,7 @@ GROUP BY derivations.system,
          package_derivations.target,
          derivations.file_name
 ORDER BY derivations.system DESC,
-         package_derivations.target DESC,
+         NULLIF(package_derivations.target, '') DESC NULLS FIRST,
          derivations.file_name")
 
   (map (match-lambda



reply via email to

[Prev in Thread] Current Thread [Next in Thread]