const std = @import("std"); /// Sorts by byte value, the one order that depends on nothing but the bytes: /// no locale, no normalization. Discovery relies on that for a deterministic /// history (M1-SAFE-001). pub fn sortBytewise(strings: [][]const u8) void { std.mem.sort([]const u8, strings, {}, lessThan); } fn lessThan(_: void, lhs: []const u8, rhs: []const u8) bool { return std.mem.lessThan(u8, lhs, rhs); }