JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 587871
  • Score
    100M100P100Q172029F

Sort the keys in an object

Package Exports

  • sort-object

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (sort-object) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

sort-object NPM version

Sort the keys in an object

Quickstart

npm i sort-object --save
var sort = require('./sort-object');

var outOfOrder = {
  'foo': 1,
  'baz': 2,
  'bar': 3
};

console.log('before: ', outOfOrder);

var inOrder = sort(outOfOrder);

console.log('inOrder: ', inOrder);
console.log('after: ', outOfOrder);

Author

License

Copyright (c) 2013 Assemble Licensed under the MIT license.


Project created by Assemble.