std.sort: add pdqsort and heapsort
This commit is contained in:
committed by
Andrew Kelley
parent
bfe02ff61a
commit
3db3cf7790
@@ -260,7 +260,7 @@ pub fn main() !void {
|
||||
try contents_list.append(contents);
|
||||
}
|
||||
}
|
||||
std.sort.sort(*Contents, contents_list.items, {}, Contents.hitCountLessThan);
|
||||
std.mem.sort(*Contents, contents_list.items, {}, Contents.hitCountLessThan);
|
||||
const best_contents = contents_list.popOrNull().?;
|
||||
if (best_contents.hit_count > 1) {
|
||||
// worth it to make it generic
|
||||
|
||||
Reference in New Issue
Block a user