Skip to main content

compare_objects

Function compare_objects 

Source
pub fn compare_objects(
    a: &SceneObject,
    b: &SceneObject,
    sort: &[SceneObjectComparator],
) -> Ordering
Expand description

Order two objects by sort (“Sort properties: createdAt, name”; RFC 8620 §5.5: later comparators break ties of earlier ones), then by id so the order is total.

ponytail: name compares by Unicode code point and ignores the comparator’s collation; objects without a name go last in either direction, as compare_assets does.