{"name":"num-sort","version":"1.0.0","keywords":["sort","sorter","compare","comparator","num","number","numbers","order","asc","ascending","desc","descending"],"author":{"url":"sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"num-sort@1.0.0","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/num-sort","bugs":{"url":"https://github.com/sindresorhus/num-sort/issues"},"dist":{"shasum":"cabec1fd5f4da4aca995af90b7a0f379944e1dbd","tarball":"http://registry-npm.ywwl.com/num-sort/download/num-sort-1.0.0.tgz","integrity":"sha512-rlgHFHwHtMw93TwRpcPanY83xaSrVzAnKRJCp5yXylFGNObD2tRm+HjtvinLnqM0mHXx6I1+/7SeEcbQeV73OQ==","signatures":[{"sig":"MEQCIFb6/EBl4y9Ok5wiJg8jya0LERcTo62cRltBLuZ9xzzRAiA4paI0Dvqzd0AN5rnsVhWPzAQ0pDkZKnxHZ615UcjWpQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":1572,"noattachment":false,"key":"/num-sort/-/num-sort-1.0.0.tgz"},"_from":".","files":["index.js"],"_shasum":"cabec1fd5f4da4aca995af90b7a0f379944e1dbd","engines":{"node":">=0.10.0"},"gitHead":"a1239fd7c01066d50aebe80905e08cb184db3107","scripts":{"test":"node test.js"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"https://github.com/sindresorhus/num-sort","type":"git"},"_npmVersion":"2.10.1","description":"Sort an array of numbers","directories":{},"_nodeVersion":"0.12.4","dependencies":{"number-is-nan":"^1.0.0"},"devDependencies":{"ava":"0.0.4"},"readme":"# num-sort\n\n> Sort an array of numbers\n\n## Install\n\n```sh\nnpm install num-sort\n```\n\n## Usage\n\n```js\nimport {numberSortAscending, numberSortDescending} from 'num-sort';\n\n[9, -3, -Infinity, 24, NaN].sort(numberSortAscending);\n//=> [NaN, -Infinity, -3, 9, 24]\n\n[9n, 3n, 24n, -5n].sort(numberSortAscending);\n//=> [-5n, 3n, 9n, 24n]\n\n[9, -3, -Infinity, 24, NaN].sort(numberSortDescending);\n//=> [24, 9, -3, -Infinity, NaN]\n\n[9n, 3n, 24n, -5n].sort(numberSortDescending);\n//=> [24n, 9n, 3n, -5n]\n```\n\n## API\n\n### numberSortAscending\n\nAscending sort comparator.\n\nSupports both `number` and `bigint` types.\n\n### numberSortDescending\n\nDescending sort comparator.\n\nSupports both `number` and `bigint` types.\n\n## Related\n\n- [alpha-sort](https://github.com/sindresorhus/alpha-sort) - Alphabetically sort an array of strings\n\n","publish_time":1433082225245,"_cnpm_publish_time":1433082225245,"dist-tags":{"latest":"4.0.0"}}