diff --git a/rust/agama-lib/share/examples/profile.jsonnet b/rust/agama-lib/share/examples/profile.jsonnet index 176a5e006e..96095a0697 100644 --- a/rust/agama-lib/share/examples/profile.jsonnet +++ b/rust/agama-lib/share/examples/profile.jsonnet @@ -16,7 +16,7 @@ local agama = import 'hw.libsonnet'; // Find the biggest disk which is suitable for installing the system. local findBiggestDisk(disks) = local sizedDisks = std.filter(function(d) std.objectHas(d, 'size'), disks); - local sorted = std.sort(sizedDisks, function(x) x.size); + local sorted = std.sort(sizedDisks, function(x) -x.size); sorted[0].logicalname; {