~/bend-docscommunity

order.bend checks

raw source on the hub · import bend-kit-collections@0.1.5.0/order.bend as Order

Order: comparators for OMap, List.sort, and other templates that take ~cmp.

1 import
import Base

Definitions

def string.fin source · line 4 · raw

@c:Cmp -> @rest:Cmp -> Cmp

def string source · line 15 · raw

@a:String -> @b:String -> Cmp

Strings in code-point order, a prefix before its extensions. String.order gives the same answers, but it rebuilds both strings on every call.