fn sort_keys(mut obj: Object) -> Object {
            obj.properties
                .as_mut()
                .map(|properties| properties.sort_unstable_by(|a, b| a.key.cmp(&b.key)));
            obj.metrics.as_mut().map(|metrics| metrics.sort_unstable_by(|a, b| a.key.cmp(&b.key)));
            obj
        }
// Objects as returned by evaluate() aren't guaranteed to have the same ordering of
// metrics/properties as was originally supplied.
Objects as returned by evaluate() aren't guaranteed to have the same ordering of
metrics/properties as was originally supplied.
Objects as returned by evaluate () aren ' t guaranteed to have the same ordering of metrics / properties as was originally supplied .
fn sort_keys(mut obj: Object) -> Object {
            obj.properties
                .as_mut()
                .map(|properties| properties.sort_unstable_by(|a, b| a.key.cmp(&b.key)));
            obj.metrics.as_mut().map(|metrics| metrics.sort_unstable_by(|a, b| a.key.cmp(&b.key)));
            obj
        }
fn sort_keys ( mut obj : Object ) -> Object { obj . properties . as_mut ( ) . map ( | properties | properties . sort_unstable_by ( | a , b | a . key . cmp ( & b . key ) ) ) ; obj . metrics . as_mut ( ) . map ( | metrics | metrics . sort_unstable_by ( | a , b | a . key . cmp ( & b . key ) ) ) ; obj }
Objects as returned by evaluate() aren't guaranteed to have the same ordering of
metrics/properties as was originally supplied.
Objects as returned by evaluate () aren ' t guaranteed to have the same ordering of metrics / properties as was originally supplied .
obj
Object
obj
Object