diff options
| author | Ali Chraghi <alichraghi@proton.me> | 2023-05-23 15:33:12 +0330 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-05-23 17:55:59 -0700 |
| commit | 3db3cf77904e664d589287602c14168a7a63f125 (patch) | |
| tree | 62bec3710d6b806d54718475bf7a3673ba1a67a5 /lib/std/meta.zig | |
| parent | bfe02ff61a8861c269524c60668a3969cb053720 (diff) | |
| download | zig-3db3cf77904e664d589287602c14168a7a63f125.tar.gz zig-3db3cf77904e664d589287602c14168a7a63f125.zip | |
std.sort: add pdqsort and heapsort
Diffstat (limited to 'lib/std/meta.zig')
| -rw-r--r-- | lib/std/meta.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/meta.zig b/lib/std/meta.zig index 8adba2439a..d0b07b934f 100644 --- a/lib/std/meta.zig +++ b/lib/std/meta.zig @@ -985,7 +985,7 @@ pub fn declList(comptime Namespace: type, comptime Decl: type) []const *const De for (decls, 0..) |decl, i| { array[i] = &@field(Namespace, decl.name); } - std.sort.sort(*const Decl, &array, {}, S.declNameLessThan); + mem.sort(*const Decl, &array, {}, S.declNameLessThan); return &array; } } |
