From 051edc95f12d3bb55fd67c6f2a3f4478df53a08f Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Fri, 20 Mar 2015 22:05:04 +0100 Subject: guix package: '-s' sorts packages by name, then by version. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Before that it would sort them by name only, so the order in which two packages with the same name but a different version would appear was non-deterministic. Reported by Tomáš Čech . * guix/scripts/package.scm (find-packages-by-description)[version=?)) + (sort (fold-packages (lambda (package result) (define matches? @@ -254,8 +256,11 @@ (define matches? result)) '()) (lambda (p1 p2) - (string)) + ((=) (version