Function orderIgnoreCase [src]
Returns the lexicographical order of two slices. O(n).
  Prototype
 pub fn orderIgnoreCase(lhs: []const u8, rhs: []const u8) std.math.Order  Parameters
lhs: []const u8rhs: []const u8 Source
 pub fn orderIgnoreCase(lhs: []const u8, rhs: []const u8) std.math.Order {
    const n = @min(lhs.len, rhs.len);
    var i: usize = 0;
    while (i < n) : (i += 1) {
        switch (std.math.order(toLower(lhs[i]), toLower(rhs[i]))) {
            .eq => continue,
            .lt => return .lt,
            .gt => return .gt,
        }
    }
    return std.math.order(lhs.len, rhs.len);
}