std.sort: add pdqsort and heapsort

This commit is contained in:
Ali Chraghi
2023-05-23 15:33:12 +03:30
committed by Andrew Kelley
parent bfe02ff61a
commit 3db3cf7790
37 changed files with 1797 additions and 1386 deletions

View File

@@ -646,7 +646,7 @@ pub fn main() anyerror!void {
}
// Some options have multiple matches. As an example, "-Wl,foo" matches both
// "W" and "Wl,". So we sort this list in order of descending priority.
std.sort.sort(*json.ObjectMap, all_objects.items, {}, objectLessThan);
std.mem.sort(*json.ObjectMap, all_objects.items, {}, objectLessThan);
var buffered_stdout = std.io.bufferedWriter(std.io.getStdOut().writer());
const stdout = buffered_stdout.writer();