[ol7_software_collections] rh-nodejs4-nodejs-sorted-object-1.0.0-5.el7.noarch

Name:rh-nodejs4-nodejs-sorted-object
Version:1.0.0
Release:5.el7
Architecture:noarch
Group:Unspecified
Size:2615
License:WTFPL
RPM: rh-nodejs4-nodejs-sorted-object-1.0.0-5.el7.noarch.rpm
Source RPM: rh-nodejs4-nodejs-sorted-object-1.0.0-5.el7.src.rpm
Build Date:Wed Jun 15 2016
Build Host:x86-ol7-builder-01.us.oracle.com
Vendor:Oracle America
URL:https://github.com/domenic/sorted-object
Summary:Returns a copy of an object with its keys sorted
Description:
Although objects in JavaScript are theoretically unsorted, in practice most engines use insertion order—at least, ignoring numeric keys. This manifests itself most prominently when dealing with an object's JSON serialization.

So, for example, you might be trying to serialize some object to a JSON file. But every time you write it, it ends up being output in a different order, depending on how you created it in the first place! This makes for some ugly diffs.

sorted-object gives you the answer. Just use this package to create a version of your object with its keys sorted before serializing, and you'll get a consistent order every time.

Changelog (Show File list) (Show related packages)