{"_id":"natural-orderby","_rev":"4160313","name":"natural-orderby","description":"Lightweight and performant natural sorting of arrays and collections by differentiating between unicode characters, numbers, dates, etc.","dist-tags":{"latest":"5.0.0"},"maintainers":[{"name":"yobacca","email":"olaf.ennen@gmail.com"}],"time":{"modified":"2026-03-01T20:38:17.000Z","created":"2018-06-26T23:31:21.957Z","5.0.0":"2024-11-18T12:36:45.709Z","4.0.0":"2024-09-16T11:28:50.215Z","3.0.2":"2023-01-19T14:02:57.274Z","3.0.1":"2022-11-13T19:21:14.341Z","3.0.0":"2022-11-13T18:49:12.488Z","2.0.3":"2019-04-09T20:37:12.178Z","2.0.2":"2019-03-19T00:59:14.227Z","2.0.1":"2019-02-19T21:40:21.610Z","2.0.0":"2019-01-20T22:56:23.678Z","1.1.1":"2019-01-17T23:59:08.279Z","1.1.0":"2019-01-17T23:37:52.794Z","1.0.2":"2018-08-11T22:22:28.631Z","1.0.1":"2018-07-15T19:38:10.302Z","1.0.0":"2018-06-26T23:31:21.957Z"},"users":{},"author":{"name":"Olaf Ennen","email":"olaf.ennen@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/yobacca/natural-orderby.git"},"versions":{"5.0.0":{"name":"natural-orderby","version":"5.0.0","description":"Lightweight and performant natural sorting of arrays and collections by differentiating between unicode characters, numbers, dates, etc.","sideEffects":false,"main":"./dist/main.js","types":"./dist/index.d.ts","module":"./dist/index.js","repository":{"type":"git","url":"git+https://github.com/yobacca/natural-orderby.git"},"scripts":{"build":"tsc && rollup -c","clean":"git clean -fdX .","docs":"docsify serve docs","format":"prettier --ignore-path .eslintignore --write src","lint":"eslint src","test":"cross-env TZ=UTC jest src","typecheck":"tsc --noEmit --emitDeclarationOnly false","size":"filesize","prepublishOnly":"yarn build","prepare":"husky"},"keywords":["sort","order","string","natsort","natcmp","compare","alphanum","unicode","date","number","float","numeric","natural","human","javascript","array","collection","list","sorting","case sensitive","case insensitive","ascending","descending","browser","node.js","node"],"author":{"name":"Olaf Ennen","email":"olaf.ennen@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/yobacca/natural-orderby/issues"},"homepage":"https://yobacca.github.io/natural-orderby","dependencies":{},"devDependencies":{"@ampproject/filesize":"^4.3.0","@babel/core":"^7.18.2","@babel/preset-env":"^7.18.2","@babel/preset-modules":"^0.1.5","@babel/preset-typescript":"^7.17.12","@changesets/cli":"^2.25.2","@commitlint/cli":"^19.4.0","@commitlint/config-conventional":"^19.2.2","@commitlint/types":"^19.0.3","@rollup/plugin-babel":"^6.0.0","@rollup/plugin-node-resolve":"^15.0.1","@rollup/plugin-terser":"^0.4.4","@types/jest":"29.5.13","@typescript-eslint/eslint-plugin":"^7.18.0","@typescript-eslint/parser":"^7.18.0","cross-env":"^7.0.3","docsify-cli":"^4.3.0","eslint":"^8.56.0","eslint-config-prettier":"^9.1.0","eslint-plugin-import":"^2.29.1","eslint-plugin-jest":"^28.8.0","eslint-plugin-n":"^17.10.2","eslint-plugin-prettier":"^5.2.1","husky":"^9.1.5","jest":"^29.3.1","lint-staged":"^15.2.9","prettier":"^3.3.3","rollup":"^4.21.1","rollup-plugin-delete":"^2.0.0","rollup-plugin-dts":"^6.1.1","ts-jest":"^29.0.3","typescript":"^5.5.4"},"lint-staged":{"*.{ts,md,json}":["prettier --write"],"*.{ts,json}":["eslint --rule \"@typescript-eslint/no-unused-vars: error\""]},"engines":{"node":">=18"},"filesize":{"./dist/umd/natural-orderby.production.min.js":{"none":"5.5 kB"},"./dist/natural-orderby.production.min.js":{"none":"4.6 kB"}},"_id":"natural-orderby@5.0.0","gitHead":"b5c77b35ed445754b32dda3932cb2a76da40f79e","_nodeVersion":"18.20.4","_npmVersion":"10.7.0","dist":{"shasum":"bb655f669ee9c84e82cdc6cddbba25eb263cd9f4","size":14210,"noattachment":false,"key":"/natural-orderby/-/natural-orderby-5.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/natural-orderby/download/natural-orderby-5.0.0.tgz"},"_npmUser":{"name":"yobacca","email":"olaf.ennen@gmail.com"},"directories":{},"maintainers":[{"name":"yobacca","email":"olaf.ennen@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/natural-orderby_5.0.0_1731933405473_0.5744192055747379"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-11-18T12:36:45.709Z","publish_time":1731933405709,"_source_registry_name":"default","_cnpm_publish_time":1731933405709},"4.0.0":{"name":"natural-orderby","version":"4.0.0","description":"Lightweight and performant natural sorting of arrays and collections by differentiating between unicode characters, numbers, dates, etc.","sideEffects":false,"main":"./dist/main.js","types":"./dist/index.d.ts","module":"./dist/index.js","repository":{"type":"git","url":"git+https://github.com/yobacca/natural-orderby.git"},"scripts":{"build":"tsc && rollup -c","clean":"git clean -fdX .","docs":"docsify serve docs","format":"prettier --ignore-path .eslintignore --write src","lint":"eslint src","test":"cross-env TZ=UTC jest src","typecheck":"tsc --noEmit --emitDeclarationOnly false","size":"filesize","prepublishOnly":"yarn build","prepare":"husky"},"keywords":["sort","order","string","natsort","natcmp","compare","alphanum","unicode","date","number","float","numeric","natural","human","javascript","array","collection","list","sorting","case sensitive","case insensitive","ascending","descending","browser","node.js","node"],"author":{"name":"Olaf Ennen","email":"olaf.ennen@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/yobacca/natural-orderby/issues"},"homepage":"https://yobacca.github.io/natural-orderby","dependencies":{},"devDependencies":{"@ampproject/filesize":"^4.3.0","@babel/core":"^7.18.2","@babel/preset-env":"^7.18.2","@babel/preset-modules":"^0.1.5","@babel/preset-typescript":"^7.17.12","@changesets/cli":"^2.25.2","@commitlint/cli":"^19.4.0","@commitlint/config-conventional":"^19.2.2","@commitlint/types":"^19.0.3","@rollup/plugin-babel":"^6.0.0","@rollup/plugin-node-resolve":"^15.0.1","@rollup/plugin-terser":"^0.4.4","@types/jest":"29.5.13","@typescript-eslint/eslint-plugin":"^7.18.0","@typescript-eslint/parser":"^7.18.0","cross-env":"^7.0.3","docsify-cli":"^4.3.0","eslint":"^8.56.0","eslint-config-prettier":"^9.1.0","eslint-plugin-import":"^2.29.1","eslint-plugin-jest":"^28.8.0","eslint-plugin-n":"^17.10.2","eslint-plugin-prettier":"^5.2.1","husky":"^9.1.5","jest":"^29.3.1","lint-staged":"^15.2.9","prettier":"^3.3.3","rollup":"^4.21.1","rollup-plugin-delete":"^2.0.0","rollup-plugin-dts":"^6.1.1","ts-jest":"^29.0.3","typescript":"^5.5.4"},"lint-staged":{"*.{ts,md,json}":["prettier --write"],"*.{ts,json}":["eslint --rule \"@typescript-eslint/no-unused-vars: error\""]},"engines":{"node":">=18"},"filesize":{"./dist/umd/natural-orderby.production.min.js":{"none":"5.5 kB"},"./dist/natural-orderby.production.min.js":{"none":"4.6 kB"}},"_id":"natural-orderby@4.0.0","gitHead":"dd209099ecb4b44becbca34f68864d82ee409fcd","_nodeVersion":"18.20.4","_npmVersion":"10.7.0","dist":{"shasum":"f5359465caff3d16454462099b7b319be30ee9f6","size":13800,"noattachment":false,"key":"/natural-orderby/-/natural-orderby-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/natural-orderby/download/natural-orderby-4.0.0.tgz"},"_npmUser":{"name":"yobacca","email":"olaf.ennen@gmail.com"},"directories":{},"maintainers":[{"name":"yobacca","email":"olaf.ennen@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/natural-orderby_4.0.0_1726486130061_0.20504374637432088"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-09-16T11:28:50.215Z","publish_time":1726486130215,"_source_registry_name":"default","_cnpm_publish_time":1726486130215},"3.0.2":{"name":"natural-orderby","version":"3.0.2","description":"Lightweight and performant natural sorting of arrays and collections by differentiating between unicode characters, numbers, dates, etc.","sideEffects":false,"main":"./dist/main.js","types":"./dist/index.d.ts","module":"./dist/index.js","repository":{"type":"git","url":"git+https://github.com/yobacca/natural-orderby.git"},"scripts":{"build":"tsc && rollup -c","clean":"git clean -fdX .","docs":"docsify serve docs","format":"prettier --ignore-path .eslintignore --write src","lint":"eslint src","test":"cross-env TZ=UTC jest src","size":"filesize","prepublishOnly":"yarn build","prepare":"husky install"},"keywords":["sort","order","string","natsort","natcmp","compare","alphanum","unicode","date","number","float","numeric","natural","human","javascript","array","collection","list","sorting","case sensitive","case insensitive","ascending","descending","browser","node.js","node"],"author":{"name":"Olaf Ennen","email":"olaf.ennen@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/yobacca/natural-orderby/issues"},"homepage":"https://yobacca.github.io/natural-orderby","dependencies":{},"devDependencies":{"@ampproject/filesize":"^4.3.0","@babel/core":"^7.18.2","@babel/preset-env":"^7.18.2","@babel/preset-modules":"^0.1.5","@babel/preset-typescript":"^7.17.12","@changesets/cli":"^2.25.2","@commitlint/cli":"^17.2.0","@commitlint/config-conventional":"^17.2.0","@commitlint/types":"^17.0.0","@rollup/plugin-babel":"^6.0.0","@rollup/plugin-node-resolve":"^15.0.1","@rollup/plugin-terser":"^0.3.0","@types/jest":"29.2.6","@typescript-eslint/eslint-plugin":"^5.42.1","@typescript-eslint/parser":"^5.42.1","babel-eslint":"^10.1.0","babel-jest":"^29.3.1","cross-env":"^7.0.3","docsify-cli":"^4.3.0","eslint":"^8.27.0","eslint-config-prettier":"^8.5.0","eslint-plugin-import":"^2.23.4","eslint-plugin-jest":"^27.1.4","eslint-plugin-node":"^11.1.0","eslint-plugin-prettier":"^4.0.0","husky":"^8.0.0","jest":"^29.3.1","lint-staged":"^13.0.3","prettier":"^2.5.1","rollup":"^2.79.1","rollup-plugin-delete":"^2.0.0","rollup-plugin-dts":"^5.0.0","ts-jest":"^29.0.3","typescript":"^4.7.3"},"lint-staged":{"*.{ts,md,json}":["prettier --write"],"*.{ts,json}":["eslint --rule \"@typescript-eslint/no-unused-vars: error\""]},"engines":{"node":">=18"},"filesize":{"./dist/umd/natural-orderby.production.min.js":{"none":"5.5 kB"},"./dist/natural-orderby.production.min.js":{"none":"4.6 kB"}},"gitHead":"bdd6c0e48f51820397a53b64134a46eadc7d9b42","_id":"natural-orderby@3.0.2","_nodeVersion":"18.13.0","_npmVersion":"8.19.3","dist":{"shasum":"1b874d685fbd68beab2c6e7d14f298e03d631ec3","size":13727,"noattachment":false,"key":"/natural-orderby/-/natural-orderby-3.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/natural-orderby/download/natural-orderby-3.0.2.tgz"},"_npmUser":{"name":"yobacca","email":"olaf.ennen@gmail.com"},"directories":{},"maintainers":[{"name":"yobacca","email":"olaf.ennen@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/natural-orderby_3.0.2_1674136977039_0.9607782746930915"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-01-19T14:02:57.274Z","publish_time":1674136977274,"_cnpm_publish_time":1674136977274},"3.0.1":{"name":"natural-orderby","version":"3.0.1","description":"Lightweight and performant natural sorting of arrays and collections by differentiating between unicode characters, numbers, dates, etc.","sideEffects":false,"main":"./dist/main.js","types":"./dist/index.d.ts","module":"./dist/index.js","repository":{"type":"git","url":"git+https://github.com/yobacca/natural-orderby.git"},"scripts":{"build":"tsc && rollup -c","clean":"git clean -fdX .","docs":"docsify serve docs","format":"prettier --ignore-path .eslintignore --write src","lint":"eslint src","test":"cross-env TZ=UTC jest src","size":"filesize","prepublishOnly":"yarn build","prepare":"husky install"},"keywords":["sort","order","string","natsort","natcmp","compare","alphanum","unicode","date","number","float","numeric","natural","human","javascript","array","collection","list","sorting","case sensitive","case insensitive","ascending","descending","browser","node.js","node"],"author":{"name":"Olaf Ennen","email":"olaf.ennen@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/yobacca/natural-orderby/issues"},"homepage":"https://yobacca.github.io/natural-orderby","dependencies":{},"devDependencies":{"@ampproject/filesize":"^4.3.0","@babel/core":"^7.18.2","@babel/preset-env":"^7.18.2","@babel/preset-modules":"^0.1.5","@babel/preset-typescript":"^7.17.12","@changesets/cli":"^2.25.2","@commitlint/cli":"^17.2.0","@commitlint/config-conventional":"^17.2.0","@commitlint/types":"^17.0.0","@rollup/plugin-babel":"^6.0.0","@rollup/plugin-node-resolve":"^15.0.1","@rollup/plugin-terser":"^0.1.0","@types/jest":"29.2.2","@typescript-eslint/eslint-plugin":"^5.42.1","@typescript-eslint/parser":"^5.42.1","babel-eslint":"^10.1.0","babel-jest":"^29.3.1","cross-env":"^7.0.3","docsify-cli":"^4.3.0","eslint":"^8.27.0","eslint-config-prettier":"^8.5.0","eslint-plugin-import":"^2.23.4","eslint-plugin-jest":"^27.1.4","eslint-plugin-node":"^11.1.0","eslint-plugin-prettier":"^4.0.0","husky":"^8.0.0","jest":"^29.3.1","lint-staged":"^13.0.3","prettier":"^2.5.1","rollup":"^2.79.1","rollup-plugin-delete":"^2.0.0","rollup-plugin-dts":"^5.0.0","ts-jest":"^29.0.3","typescript":"^4.7.3"},"lint-staged":{"*.{ts,md,json}":["prettier --write"],"*.{ts,json}":["eslint --rule \"@typescript-eslint/no-unused-vars: error\""]},"engines":{"node":">=18"},"filesize":{"./dist/umd/natural-orderby.production.min.js":{"none":"5.5 kB"},"./dist/natural-orderby.production.min.js":{"none":"4.6 kB"}},"gitHead":"b8e1dbb6543226fd4fbf4dd4fa6cc79615b98b50","_id":"natural-orderby@3.0.1","_nodeVersion":"18.12.1","_npmVersion":"8.19.2","dist":{"shasum":"6beb1d077887e7806d917e92f71d25b2e8884c17","size":13628,"noattachment":false,"key":"/natural-orderby/-/natural-orderby-3.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/natural-orderby/download/natural-orderby-3.0.1.tgz"},"_npmUser":{"name":"yobacca","email":"olaf.ennen@gmail.com"},"directories":{},"maintainers":[{"name":"yobacca","email":"olaf.ennen@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/natural-orderby_3.0.1_1668367274071_0.31917482938950537"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-11-13T19:21:25.767Z","publish_time":1668367274341,"_cnpm_publish_time":1668367274341},"3.0.0":{"name":"natural-orderby","version":"3.0.0","description":"Lightweight and performant natural sorting of arrays and collections by differentiating between unicode characters, numbers, dates, etc.","sideEffects":false,"main":"./dist/main.js","types":"./dist/index.d.ts","module":"./dist/index.js","repository":{"type":"git","url":"git+https://github.com/yobacca/natural-orderby.git"},"scripts":{"build":"tsc && rollup -c","clean":"git clean -fdX .","docs":"docsify serve docs","format":"prettier --ignore-path .eslintignore --write src","lint":"eslint src","test":"cross-env TZ=UTC jest src","size":"filesize","prepublishOnly":"yarn build","prepare":"husky install"},"keywords":["sort","order","string","natsort","natcmp","compare","alphanum","unicode","date","number","float","numeric","natural","human","javascript","array","collection","list","sorting","case sensitive","case insensitive","ascending","descending","browser","node.js","node"],"author":{"name":"Olaf Ennen","email":"olaf.ennen@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/yobacca/natural-orderby/issues"},"homepage":"https://yobacca.github.io/natural-orderby","dependencies":{},"devDependencies":{"@ampproject/filesize":"^4.3.0","@babel/core":"^7.18.2","@babel/preset-env":"^7.18.2","@babel/preset-modules":"^0.1.5","@babel/preset-typescript":"^7.17.12","@changesets/cli":"^2.25.2","@commitlint/cli":"^17.2.0","@commitlint/config-conventional":"^17.2.0","@commitlint/types":"^17.0.0","@rollup/plugin-babel":"^6.0.0","@rollup/plugin-node-resolve":"^15.0.1","@rollup/plugin-terser":"^0.1.0","@types/jest":"29.2.2","@typescript-eslint/eslint-plugin":"^5.42.1","@typescript-eslint/parser":"^5.42.1","babel-eslint":"^10.1.0","babel-jest":"^29.3.1","cross-env":"^7.0.3","docsify-cli":"^4.3.0","eslint":"^8.27.0","eslint-config-prettier":"^8.5.0","eslint-plugin-import":"^2.23.4","eslint-plugin-jest":"^27.1.4","eslint-plugin-node":"^11.1.0","eslint-plugin-prettier":"^4.0.0","husky":"^8.0.0","jest":"^29.3.1","lint-staged":"^13.0.3","prettier":"^2.5.1","rollup":"^2.79.1","rollup-plugin-delete":"^2.0.0","rollup-plugin-dts":"^5.0.0","ts-jest":"^29.0.3","typescript":"^4.7.3"},"lint-staged":{"*.{ts,md,json}":["prettier --write"],"*.{ts,json}":["eslint --rule \"@typescript-eslint/no-unused-vars: error\""]},"engines":{"node":">=18"},"filesize":{"./dist/umd/natural-orderby.production.min.js":{"none":"5.5 kB"},"./dist/natural-orderby.production.min.js":{"none":"4.6 kB"}},"gitHead":"69e35b199c8f3859b805c6ca1d8e36db44855924","_id":"natural-orderby@3.0.0","_nodeVersion":"18.12.1","_npmVersion":"8.19.2","dist":{"shasum":"3f6417920cdabd2e1ce6d02588f34b9da675a245","size":13626,"noattachment":false,"key":"/natural-orderby/-/natural-orderby-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/natural-orderby/download/natural-orderby-3.0.0.tgz"},"_npmUser":{"name":"yobacca","email":"olaf.ennen@gmail.com"},"directories":{},"maintainers":[{"name":"yobacca","email":"olaf.ennen@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/natural-orderby_3.0.0_1668365352280_0.17233714371093978"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-11-13T18:49:15.923Z","publish_time":1668365352488,"_cnpm_publish_time":1668365352488},"2.0.3":{"name":"natural-orderby","version":"2.0.3","description":"Lightweight and performant natural sorting of arrays and collections by differentiating between unicode characters, numbers, dates, etc.","main":"cjs/natural-orderby.js","types":"./index.d.ts","module":"esm/natural-orderby.js","repository":{"type":"git","url":"git+https://github.com/yobacca/natural-orderby.git"},"scripts":{"prebuild":"rimraf iife cjs esm","build":"rollup -c","docs":"docsify serve docs","lint":"eslint src","flow":"flow check","test":"cross-env TZ=UTC jest src","prepublishOnly":"npm run build"},"keywords":["sort","order","string","natsort","natcmp","compare","alphanum","unicode","date","number","float","numeric","natural","human","javascript","array","collection","list","sorting","case sensitive","case insensitive","ascending","descending","browser","node.js","node"],"author":{"name":"Olaf Ennen","email":"olaf.ennen@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/yobacca/natural-orderby/issues"},"homepage":"https://yobacca.github.io/natural-orderby","dependencies":{},"devDependencies":{"@babel/cli":"7.4.3","@babel/core":"7.4.3","@babel/plugin-proposal-object-rest-spread":"7.4.3","@babel/plugin-transform-flow-strip-types":"7.4.0","@babel/plugin-transform-runtime":"7.4.3","@babel/preset-env":"7.4.3","@commitlint/cli":"7.5.2","@commitlint/config-conventional":"7.5.0","babel-eslint":"10.0.1","babel-jest":"24.7.1","cross-env":"5.2.0","docsify-cli":"4.3.0","eslint":"5.16.0","eslint-config-airbnb-base":"13.1.0","eslint-config-prettier":"4.1.0","eslint-plugin-flowtype":"3.6.0","eslint-plugin-import":"2.16.0","flow-bin":"0.96.0","husky":"1.3.1","jest":"24.7.1","lint-staged":"8.1.5","prettier":"1.16.4","rimraf":"2.6.3","rollup":"1.9.0","rollup-plugin-babel":"4.3.2","rollup-plugin-node-resolve":"4.2.1","rollup-plugin-replace":"2.1.1","rollup-plugin-size-snapshot":"0.8.0","rollup-plugin-uglify":"6.0.2"},"lint-staged":{"*.js":["prettier --write","eslint --fix","git add"]},"engines":{"node":"*"},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"lint-staged"}},"gitHead":"c75472a648fd16d9ae946cb464f811c62c090741","_id":"natural-orderby@2.0.3","_npmVersion":"6.4.1","_nodeVersion":"10.15.0","_npmUser":{"name":"yobacca","email":"olaf.ennen@gmail.com"},"dist":{"shasum":"8623bc518ba162f8ff1cdb8941d74deb0fdcc016","size":40452,"noattachment":false,"key":"/natural-orderby/-/natural-orderby-2.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/natural-orderby/download/natural-orderby-2.0.3.tgz"},"maintainers":[{"name":"yobacca","email":"olaf.ennen@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/natural-orderby_2.0.3_1554842232039_0.2861200171654825"},"_hasShrinkwrap":false,"publish_time":1554842232178,"_cnpm_publish_time":1554842232178},"2.0.2":{"name":"natural-orderby","version":"2.0.2","description":"Lightweight and performant natural sorting of arrays and collections by differentiating between unicode characters, numbers, dates, etc.","main":"cjs/natural-orderby.js","types":"./index.d.ts","module":"esm/natural-orderby.js","repository":{"type":"git","url":"git+https://github.com/yobacca/natural-orderby.git"},"scripts":{"prebuild":"rimraf iife cjs esm","build":"rollup -c","docs":"docsify serve docs","lint":"eslint src","flow":"flow check","test":"cross-env TZ=UTC jest src","prepublishOnly":"npm run build"},"keywords":["sort","order","string","natsort","natcmp","compare","alphanum","unicode","date","number","float","numeric","natural","human","javascript","array","collection","list","sorting","case sensitive","case insensitive","ascending","descending","browser","node.js","node"],"author":{"name":"Olaf Ennen","email":"olaf.ennen@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/yobacca/natural-orderby/issues"},"homepage":"https://yobacca.github.io/natural-orderby","dependencies":{},"devDependencies":{"@babel/cli":"7.2.3","@babel/core":"7.3.4","@babel/plugin-proposal-object-rest-spread":"7.3.4","@babel/plugin-transform-flow-strip-types":"7.3.4","@babel/plugin-transform-runtime":"7.3.4","@babel/preset-env":"7.3.4","@commitlint/cli":"7.5.2","@commitlint/config-conventional":"7.5.0","babel-eslint":"10.0.1","babel-jest":"24.5.0","cross-env":"5.2.0","docsify-cli":"4.3.0","eslint":"5.15.3","eslint-config-airbnb-base":"13.1.0","eslint-config-prettier":"4.1.0","eslint-plugin-flowtype":"3.4.2","eslint-plugin-import":"2.16.0","flow-bin":"0.95.1","husky":"1.3.1","jest":"24.5.0","lint-staged":"8.1.5","prettier":"1.16.4","rimraf":"2.6.3","rollup":"1.6.0","rollup-plugin-babel":"4.3.2","rollup-plugin-node-resolve":"4.0.1","rollup-plugin-replace":"2.1.1","rollup-plugin-size-snapshot":"0.8.0","rollup-plugin-uglify":"6.0.2"},"lint-staged":{"*.js":["prettier --write","eslint --fix","git add"]},"engines":{"node":"^8.10.0 || >=9.10.0"},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"lint-staged"}},"gitHead":"7fba6afdb7ff7690cb934d0cea0ba52c6ed00c96","_id":"natural-orderby@2.0.2","_npmVersion":"6.4.1","_nodeVersion":"10.15.0","_npmUser":{"name":"yobacca","email":"olaf.ennen@gmail.com"},"dist":{"shasum":"de06ec11633dddbc93e642aaf3774f99122cbff2","size":40476,"noattachment":false,"key":"/natural-orderby/-/natural-orderby-2.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/natural-orderby/download/natural-orderby-2.0.2.tgz"},"maintainers":[{"name":"yobacca","email":"olaf.ennen@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/natural-orderby_2.0.2_1552957153970_0.6889528024573484"},"_hasShrinkwrap":false,"publish_time":1552957154227,"_cnpm_publish_time":1552957154227},"2.0.1":{"name":"natural-orderby","version":"2.0.1","description":"Lightweight and performant natural sorting of arrays and collections by differentiating between unicode characters, numbers, dates, etc.","main":"cjs/natural-orderby.js","types":"./index.d.ts","module":"esm/natural-orderby.js","repository":{"type":"git","url":"git+https://github.com/yobacca/natural-orderby.git"},"scripts":{"prebuild":"rimraf iife cjs esm","build":"rollup -c","docs":"docsify serve docs","lint":"eslint src","flow":"flow check","test":"cross-env TZ=UTC jest src","prepublishOnly":"npm run build"},"keywords":["sort","order","string","natsort","natcmp","compare","alphanum","unicode","date","number","float","numeric","natural","human","javascript","array","collection","list","sorting","case sensitive","case insensitive","ascending","descending","browser","node.js","node"],"author":{"name":"Olaf Ennen","email":"olaf.ennen@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/yobacca/natural-orderby/issues"},"homepage":"https://yobacca.github.io/natural-orderby","dependencies":{},"devDependencies":{"@babel/cli":"^7.2.3","@babel/core":"^7.3.3","@babel/plugin-proposal-object-rest-spread":"^7.3.2","@babel/plugin-transform-flow-strip-types":"^7.2.3","@babel/plugin-transform-runtime":"^7.2.0","@babel/preset-env":"^7.3.1","@commitlint/cli":"^7.5.2","@commitlint/config-conventional":"^7.5.0","babel-eslint":"^10.0.1","babel-jest":"^24.0.0","cross-env":"^5.2.0","docsify-cli":"^4.2.1","eslint":"^5.14.1","eslint-config-airbnb-base":"^13.0.0","eslint-config-prettier":"^4.0.0","eslint-plugin-flowtype":"^3.4.2","eslint-plugin-import":"^2.16.0","flow-bin":"^0.93.0","husky":"^1.1.4","jest":"^24.0.0","lint-staged":"^8.0.5","prettier":"^1.6.1","rimraf":"^2.6.2","rollup":"^1.1.0","rollup-plugin-babel":"^4.2.0","rollup-plugin-node-resolve":"^4.0.0","rollup-plugin-replace":"^2.1.0","rollup-plugin-size-snapshot":"^0.8.0","rollup-plugin-uglify":"^6.0.0"},"lint-staged":{"*.js":["prettier --write","eslint --fix","git add"]},"engines":{"node":"^8.10.0 || >=9.10.0"},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"lint-staged"}},"gitHead":"7366650dadc84974e3e1639c5edaead5be31f0f1","_id":"natural-orderby@2.0.1","_npmVersion":"6.4.1","_nodeVersion":"10.15.0","_npmUser":{"name":"yobacca","email":"olaf.ennen@gmail.com"},"dist":{"shasum":"b9b06f72b3c7292975d87a5d507045bd1090f38b","size":40373,"noattachment":false,"key":"/natural-orderby/-/natural-orderby-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/natural-orderby/download/natural-orderby-2.0.1.tgz"},"maintainers":[{"name":"yobacca","email":"olaf.ennen@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/natural-orderby_2.0.1_1550612421338_0.2898845385300912"},"_hasShrinkwrap":false,"publish_time":1550612421610,"_cnpm_publish_time":1550612421610},"2.0.0":{"name":"natural-orderby","version":"2.0.0","description":"Lightweight and performant natural sorting of arrays and collections by differentiating between unicode characters, numbers, dates, etc.","main":"cjs/natural-orderby.js","types":"./index.d.ts","module":"esm/natural-orderby.js","repository":{"type":"git","url":"git+https://github.com/yobacca/natural-orderby.git"},"scripts":{"prebuild":"rimraf iife cjs esm","build":"rollup -c","docs":"docsify serve docs","lint":"eslint src","flow":"flow check","test":"cross-env TZ=UTC jest src","prepublishOnly":"npm run build"},"keywords":["sort","order","string","natsort","natcmp","compare","alphanum","unicode","date","number","float","numeric","natural","human","javascript","array","collection","list","sorting","case sensitive","case insensitive","ascending","descending","browser","node.js","node"],"author":{"name":"Olaf Ennen","email":"olaf.ennen@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/yobacca/natural-orderby/issues"},"homepage":"https://yobacca.github.io/natural-orderby","dependencies":{},"devDependencies":{"@babel/cli":"^7.2.3","@babel/core":"^7.2.2","@babel/plugin-proposal-object-rest-spread":"^7.2.0","@babel/plugin-transform-flow-strip-types":"^7.2.3","@babel/plugin-transform-runtime":"^7.2.0","@babel/preset-env":"^7.2.3","@commitlint/cli":"^7.0.0","@commitlint/config-conventional":"^7.0.1","babel-core":"^7.0.0-bridge.0","babel-eslint":"^10.0.1","babel-jest":"^23.6.0","cross-env":"^5.2.0","docsify-cli":"^4.2.1","eslint":"^5.9.0","eslint-config-airbnb-base":"^13.0.0","eslint-config-prettier":"^3.3.0","eslint-plugin-flowtype":"^3.2.0","eslint-plugin-import":"^2.14.0","flow-bin":"^0.91.0","husky":"^1.1.4","jest":"^23.0.0","lint-staged":"^8.0.5","prettier":"^1.6.1","rimraf":"^2.6.2","rollup":"^1.1.0","rollup-plugin-babel":"^4.2.0","rollup-plugin-node-resolve":"^4.0.0","rollup-plugin-replace":"^2.1.0","rollup-plugin-size-snapshot":"^0.8.0","rollup-plugin-uglify":"^6.0.0"},"lint-staged":{"*.js":["prettier --write","eslint --fix","git add"]},"engines":{"node":"^8.10.0 || >=9.10.0"},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"lint-staged"}},"gitHead":"6bcb7e7f19b8b39644abd03d130fc574b92c26b2","_id":"natural-orderby@2.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.0","_npmUser":{"name":"yobacca","email":"olaf.ennen@gmail.com"},"dist":{"shasum":"b2c289e271629a727f4d2ef9f24440c2b4ccfb9f","size":40426,"noattachment":false,"key":"/natural-orderby/-/natural-orderby-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/natural-orderby/download/natural-orderby-2.0.0.tgz"},"maintainers":[{"name":"yobacca","email":"olaf.ennen@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/natural-orderby_2.0.0_1548024983515_0.131081233035941"},"_hasShrinkwrap":false,"publish_time":1548024983678,"_cnpm_publish_time":1548024983678},"1.1.1":{"name":"natural-orderby","version":"1.1.1","description":"Lightweight and performant natural sorting of arrays and collections by differentiating between unicode characters, numbers, dates, etc.","main":"cjs/natural-orderby.js","types":"./index.d.ts","module":"esm/natural-orderby.js","repository":{"type":"git","url":"git+https://github.com/yobacca/natural-orderby.git"},"scripts":{"prebuild":"rimraf iife cjs esm","build":"rollup -c","docs":"docsify serve docs","lint":"eslint src","flow":"flow check","test":"cross-env TZ=UTC jest src","prepublishOnly":"npm run build"},"keywords":["sort","order","string","natsort","natcmp","compare","alphanum","unicode","date","number","float","numeric","natural","human","javascript","array","collection","list","sorting","case sensitive","case insensitive","ascending","descending","browser","node.js","node"],"author":{"name":"Olaf Ennen","email":"olaf.ennen@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/yobacca/natural-orderby/issues"},"homepage":"https://yobacca.github.io/natural-orderby","dependencies":{},"devDependencies":{"@babel/cli":"^7.2.3","@babel/core":"^7.2.2","@babel/plugin-proposal-object-rest-spread":"^7.2.0","@babel/plugin-transform-flow-strip-types":"^7.2.3","@babel/plugin-transform-runtime":"^7.2.0","@babel/preset-env":"^7.2.3","@commitlint/cli":"^7.0.0","@commitlint/config-conventional":"^7.0.1","babel-core":"^7.0.0-bridge.0","babel-eslint":"^10.0.1","babel-jest":"^23.6.0","cross-env":"^5.2.0","docsify-cli":"^4.2.1","eslint":"^5.9.0","eslint-config-airbnb-base":"^13.0.0","eslint-config-prettier":"^3.3.0","eslint-plugin-flowtype":"^3.2.0","eslint-plugin-import":"^2.14.0","flow-bin":"^0.91.0","husky":"^1.1.4","jest":"^23.0.0","lint-staged":"^8.0.5","prettier":"^1.6.1","rimraf":"^2.6.2","rollup":"^1.1.0","rollup-plugin-babel":"^4.2.0","rollup-plugin-node-resolve":"^4.0.0","rollup-plugin-replace":"^2.1.0","rollup-plugin-size-snapshot":"^0.8.0","rollup-plugin-uglify":"^6.0.0"},"lint-staged":{"*.js":["prettier --write","eslint --fix","git add"]},"engines":{"node":"^8.10.0 || >=9.10.0"},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"lint-staged"}},"gitHead":"3af4140e0d523320a015aa996a2de0e53eb62598","_id":"natural-orderby@1.1.1","_npmVersion":"6.4.1","_nodeVersion":"8.15.0","_npmUser":{"name":"yobacca","email":"olaf.ennen@gmail.com"},"dist":{"shasum":"26a0d6bab64595297cfeaf7c2fc3e055f882b481","size":40714,"noattachment":false,"key":"/natural-orderby/-/natural-orderby-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/natural-orderby/download/natural-orderby-1.1.1.tgz"},"maintainers":[{"name":"yobacca","email":"olaf.ennen@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/natural-orderby_1.1.1_1547769548155_0.32775240409630113"},"_hasShrinkwrap":false,"publish_time":1547769548279,"_cnpm_publish_time":1547769548279},"1.1.0":{"name":"natural-orderby","version":"1.1.0","description":"Lightweight and performant natural sorting of arrays and collections by differentiating between unicode characters, numbers, dates, etc.","main":"cjs/natural-orderby.js","types":"./index.d.ts","module":"esm/natural-orderby.js","repository":{"type":"git","url":"git+https://github.com/yobacca/natural-orderby.git"},"scripts":{"prebuild":"rimraf iife cjs esm","build":"rollup -c","docs":"docsify serve docs","lint":"eslint src","flow":"flow check","test":"cross-env TZ=UTC jest src","prepublishOnly":"npm run build"},"keywords":["sort","order","string","natsort","natcmp","compare","alphanum","unicode","date","number","float","numeric","natural","human","javascript","array","collection","list","sorting","case sensitive","case insensitive","ascending","descending","browser","node.js","node"],"author":{"name":"Olaf Ennen","email":"olaf.ennen@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/yobacca/natural-orderby/issues"},"homepage":"https://yobacca.github.io/natural-orderby","dependencies":{},"devDependencies":{"@babel/cli":"^7.2.3","@babel/core":"^7.2.2","@babel/plugin-proposal-object-rest-spread":"^7.2.0","@babel/plugin-transform-flow-strip-types":"^7.2.3","@babel/plugin-transform-runtime":"^7.2.0","@babel/preset-env":"^7.2.3","@commitlint/cli":"^7.0.0","@commitlint/config-conventional":"^7.0.1","babel-core":"^7.0.0-bridge.0","babel-eslint":"^10.0.1","babel-jest":"^23.6.0","cross-env":"^5.2.0","docsify-cli":"^4.2.1","eslint":"^5.9.0","eslint-config-airbnb-base":"^13.0.0","eslint-config-prettier":"^3.3.0","eslint-plugin-flowtype":"^3.2.0","eslint-plugin-import":"^2.14.0","flow-bin":"^0.91.0","husky":"^1.1.4","jest":"^23.0.0","lint-staged":"^8.0.5","prettier":"^1.6.1","rimraf":"^2.6.2","rollup":"^1.1.0","rollup-plugin-babel":"^4.2.0","rollup-plugin-node-resolve":"^4.0.0","rollup-plugin-replace":"^2.1.0","rollup-plugin-size-snapshot":"^0.8.0","rollup-plugin-uglify":"^6.0.0"},"lint-staged":{"*.js":["prettier --write","eslint --fix","git add"]},"engines":{"node":"^8.10.0 || >=9.10.0"},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"lint-staged"}},"gitHead":"897f4497b745bd0ff28d909bded257147e5ea8c8","_id":"natural-orderby@1.1.0","_npmVersion":"6.4.1","_nodeVersion":"8.15.0","_npmUser":{"name":"yobacca","email":"olaf.ennen@gmail.com"},"dist":{"shasum":"862d094f850972f1622618051a94f626ec92c286","size":40714,"noattachment":false,"key":"/natural-orderby/-/natural-orderby-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/natural-orderby/download/natural-orderby-1.1.0.tgz"},"maintainers":[{"name":"yobacca","email":"olaf.ennen@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/natural-orderby_1.1.0_1547768272658_0.48384559356778345"},"_hasShrinkwrap":false,"publish_time":1547768272794,"_cnpm_publish_time":1547768272794},"1.0.2":{"name":"natural-orderby","version":"1.0.2","description":"Lightweight and performant natural sorting of arrays and collections by differentiating between unicode characters, numbers, dates, etc.","main":"lib/index.js","module":"dist/natural-orderby.es.js","repository":{"type":"git","url":"git+https://github.com/yobacca/natural-orderby.git"},"scripts":{"build":"npm run build:lib && npm run build:dist && npm run build:flow","prebuild:dist":"rimraf dist","build:dist":"rollup -c","prebuild:lib":"rimraf lib","build:lib":"cross-env NODE_ENV=cjs babel src --out-dir lib --ignore test.js","build:flow":"flow-copy-source -v -i '**/__tests__/*.js' src lib","docs":"docsify serve docs","lint":"eslint src","flow":"flow check","test":"cross-env TZ=UTC jest src","prepublish":"npm run build","precommit":"lint-staged","commitmsg":"commitlint -E GIT_PARAMS"},"files":["dist","lib","src"],"keywords":["sort","order","string","natsort","natcmp","compare","alphanum","unicode","date","number","float","numeric","natural","human","javascript","array","collection","list","sorting","case sensitive","case insensitive","ascending","descending","browser","node.js","node"],"author":{"name":"Olaf Ennen","email":"olaf.ennen@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/yobacca/natural-orderby/issues"},"homepage":"https://yobacca.github.io/natural-orderby","dependencies":{},"devDependencies":{"@commitlint/cli":"^7.0.0","@commitlint/config-conventional":"^7.0.1","babel-cli":"^6.26.0","babel-core":"^6.17.0","babel-eslint":"^8.0.0","babel-loader":"^7.1.1","babel-plugin-external-helpers":"^6.22.0","babel-plugin-transform-es2015-modules-commonjs":"^6.26.2","babel-plugin-transform-flow-strip-types":"^6.22.0","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-preset-env":"^1.6.0","cross-env":"^5.2.0","docsify-cli":"^4.2.1","eslint":"^4.3.0","eslint-config-airbnb-base":"^13.0.0","eslint-config-prettier":"^2.4.0","eslint-plugin-flowtype":"^2.35.0","eslint-plugin-import":"^2.7.0","flow-bin":"^0.75.0","flow-copy-source":"^2.0.0","husky":"^0.14.3","jest":"^23.0.0","lint-staged":"^7.2.0","prettier":"^1.6.1","rimraf":"^2.6.2","rollup":"^0.61.1","rollup-plugin-babel":"^3.0.2","rollup-plugin-node-resolve":"^3.0.0","rollup-plugin-replace":"^2.0.0","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-terser":"^1.0.1","rollup-plugin-uglify":"^4.0.0"},"lint-staged":{"*.js":["prettier --write","eslint --fix","git add"]},"engines":{"node":"^8.10.0 || >=9.10.0"},"gitHead":"1b3a25c3da4fcae8fb98fce8c745167fbe500ea8","_id":"natural-orderby@1.0.2","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"yobacca","email":"olaf.ennen@gmail.com"},"dist":{"shasum":"287a4778217fbf6af0d704129d55ae90450f7a88","size":78552,"noattachment":false,"key":"/natural-orderby/-/natural-orderby-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/natural-orderby/download/natural-orderby-1.0.2.tgz"},"maintainers":[{"name":"yobacca","email":"olaf.ennen@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/natural-orderby_1.0.2_1534026148445_0.4435759860050883"},"_hasShrinkwrap":false,"publish_time":1534026148631,"_cnpm_publish_time":1534026148631},"1.0.1":{"name":"natural-orderby","version":"1.0.1","description":"Lightweight and performant natural sorting of arrays and collections by differentiating between unicode characters, numbers, dates, etc.","main":"lib/index.js","module":"dist/natural-orderby.es.js","repository":{"type":"git","url":"git+https://github.com/yobacca/natural-orderby.git"},"scripts":{"build":"npm run build:lib && npm run build:dist && npm run build:flow","prebuild:dist":"rimraf dist","build:dist":"rollup -c","prebuild:lib":"rimraf lib","build:lib":"cross-env NODE_ENV=cjs babel src --out-dir lib --ignore test.js","build:flow":"flow-copy-source -v -i '**/__tests__/*.js' src lib","docs":"docsify serve docs","lint":"eslint src","flow":"flow check","test":"cross-env TZ=UTC jest src","prepublish":"npm run build","precommit":"lint-staged","commitmsg":"commitlint -E GIT_PARAMS"},"files":["dist","lib","src"],"keywords":["sort","order","string","natsort","natcmp","compare","alphanum","unicode","date","number","float","numeric","natural","human","javascript","array","collection","list","sorting","case sensitive","case insensitive","ascending","descending","browser","node.js","node"],"author":{"name":"Olaf Ennen","email":"olaf.ennen@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/yobacca/natural-orderby/issues"},"homepage":"https://yobacca.github.io/natural-orderby","dependencies":{},"devDependencies":{"@commitlint/cli":"^7.0.0","@commitlint/config-conventional":"^7.0.1","babel-cli":"^6.26.0","babel-core":"^6.17.0","babel-eslint":"^8.0.0","babel-loader":"^7.1.1","babel-plugin-external-helpers":"^6.22.0","babel-plugin-transform-es2015-modules-commonjs":"^6.26.2","babel-plugin-transform-flow-strip-types":"^6.22.0","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-preset-env":"^1.6.0","cross-env":"^5.2.0","docsify-cli":"^4.2.1","eslint":"^4.3.0","eslint-config-airbnb-base":"^13.0.0","eslint-config-prettier":"^2.4.0","eslint-plugin-flowtype":"^2.35.0","eslint-plugin-import":"^2.7.0","flow-bin":"^0.75.0","flow-copy-source":"^2.0.0","husky":"^0.14.3","jest":"^23.0.0","lint-staged":"^7.2.0","prettier":"^1.6.1","rimraf":"^2.6.2","rollup":"^0.61.1","rollup-plugin-babel":"^3.0.2","rollup-plugin-node-resolve":"^3.0.0","rollup-plugin-replace":"^2.0.0","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-terser":"^1.0.1","rollup-plugin-uglify":"^4.0.0"},"lint-staged":{"*.js":["prettier --write","eslint --fix","git add"]},"engines":{"node":"^8.10.0 || >=9.10.0"},"gitHead":"02486ddeb02ad20ddddd3e178df9b0b94cfbe50d","_id":"natural-orderby@1.0.1","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"yobacca","email":"olaf.ennen@gmail.com"},"dist":{"shasum":"b17114456bc36fad594deb0e5ddba7535ac294c7","size":78510,"noattachment":false,"key":"/natural-orderby/-/natural-orderby-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/natural-orderby/download/natural-orderby-1.0.1.tgz"},"maintainers":[{"name":"yobacca","email":"olaf.ennen@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/natural-orderby_1.0.1_1531683490110_0.6922284865373296"},"_hasShrinkwrap":false,"publish_time":1531683490302,"_cnpm_publish_time":1531683490302},"1.0.0":{"name":"natural-orderby","version":"1.0.0","description":"Lightweight and performant natural sorting of arrays and collections by differentiating between unicode characters, numbers, dates, etc.","main":"lib/index.js","module":"dist/natural-orderby.es.js","repository":{"type":"git","url":"git+https://github.com/yobacca/natural-orderby.git"},"scripts":{"build":"npm run build:lib && npm run build:dist && npm run build:flow","prebuild:dist":"rimraf dist","build:dist":"rollup -c","prebuild:lib":"rimraf lib","build:lib":"cross-env NODE_ENV=cjs babel src --out-dir lib --ignore test.js","build:flow":"flow-copy-source -v -i '**/__tests__/*.js' src lib","docs":"docsify serve docs","lint":"eslint src","flow":"flow check","test":"cross-env TZ=UTC jest src","prepublish":"npm run build","precommit":"lint-staged","commitmsg":"commitlint -E GIT_PARAMS"},"files":["dist","lib","src"],"keywords":["sort","order","string","natsort","natcmp","compare","alphanum","unicode","date","number","float","numeric","natural","human","javascript","array","collection","list","sorting","case sensitive","case insensitive","ascending","descending","browser","node.js","node"],"author":{"name":"Olaf Ennen","email":"olaf.ennen@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/yobacca/natural-orderby/issues"},"homepage":"https://github.com/yobacca/natural-orderby","dependencies":{},"devDependencies":{"@commitlint/cli":"^7.0.0","@commitlint/config-conventional":"^7.0.1","babel-cli":"^6.26.0","babel-core":"^6.17.0","babel-eslint":"^8.0.0","babel-loader":"^7.1.1","babel-plugin-external-helpers":"^6.22.0","babel-plugin-transform-es2015-modules-commonjs":"^6.26.2","babel-plugin-transform-flow-strip-types":"^6.22.0","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-preset-env":"^1.6.0","cross-env":"^5.2.0","docsify-cli":"^4.2.1","eslint":"^4.3.0","eslint-config-airbnb-base":"^13.0.0","eslint-config-prettier":"^2.4.0","eslint-plugin-flowtype":"^2.35.0","eslint-plugin-import":"^2.7.0","flow-bin":"^0.75.0","flow-copy-source":"^2.0.0","husky":"^0.14.3","jest":"^23.0.0","lint-staged":"^7.2.0","prettier":"^1.6.1","rimraf":"^2.6.2","rollup":"^0.61.1","rollup-plugin-babel":"^3.0.2","rollup-plugin-node-resolve":"^3.0.0","rollup-plugin-replace":"^2.0.0","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-terser":"^1.0.1","rollup-plugin-uglify":"^4.0.0"},"lint-staged":{"*.js":["prettier --write","eslint --fix","git add"]},"engines":{"node":"^8.10.0 || >=9.10.0"},"gitHead":"83f83d33ab4e1da3170838a50361fda0359647f1","_id":"natural-orderby@1.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"yobacca","email":"olaf.ennen@gmail.com"},"dist":{"shasum":"5b84deeb5007b12443432596c532aaa7fe61fa0e","size":78475,"noattachment":false,"key":"/natural-orderby/-/natural-orderby-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/natural-orderby/download/natural-orderby-1.0.0.tgz"},"maintainers":[{"name":"yobacca","email":"olaf.ennen@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/natural-orderby_1.0.0_1530055881854_0.8771289539131868"},"_hasShrinkwrap":false,"publish_time":1530055881957,"_cnpm_publish_time":1530055881957}},"readme":"# Welcome to ???? natural-orderby\n\nLightweight (< 1.6kB gzipped) and performant natural sorting of arrays and collections by differentiating between unicode characters, numbers, dates, etc.\n\n[![npm version](https://img.shields.io/npm/v/natural-orderby.svg)](https://www.npmjs.com/package/natural-orderby)\n[![downloads](https://img.shields.io/npm/dm/natural-orderby.svg)](https://www.npmjs.com/package/natural-orderby)\n[![CI](https://github.com/yobacca/natural-orderby/workflows/CI/badge.svg)](https://github.com/yobacca/natural-orderby/actions)\n[![coverage](https://img.shields.io/codecov/c/github/yobacca/natural-orderby.svg)](https://codecov.io/gh/yobacca/natural-orderby)\n\nPeople sort strings containing numbers differently than most sorting algorithms, which sort values by comparing strings in Unicode code point order. This produces an ordering that is inconsistent with human logic.\n\n`natural-orderby` sorts the primitive values of [`Boolean`](https://developer.mozilla.org/en-US/docs/Glossary/Boolean), [`Null`](https://developer.mozilla.org/en-US/docs/Glossary/Null), [`Undefined`](https://developer.mozilla.org/en-US/docs/Glossary/Undefined), [`Number`](https://developer.mozilla.org/en-US/docs/Glossary/Number) or [`String`](https://developer.mozilla.org/en-US/docs/Glossary/String) type as well as [`Date`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) objects. When comparing strings it differentiates between unicode characters, integer, floating as well as hexadecimal numbers, various date formats, etc. You may sort flat or nested arrays or arrays of objects in a natural sorting order using `natural-orderby`.\n\nIn addition to the efficient and fast `orderBy()` method `natural-orderby` also provides the method `compare()`, which may be passed to [`Array.prototype.sort()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort).\n\n## Contents\n\n- [Getting Started](#getting-started)\n- [Usage](#usage)\n- [API Reference](#api-reference)\n- [TypeScript Declarations](#typescript-declarations)\n- [Credits](#credits)\n- [License](#license)\n\n---\n\n## Getting Started\n\n```bash\n# npm\nnpm install natural-orderby --save\n\n# yarn\nyarn add natural-orderby\n```\n\nIf you´re not using a module bundler or package manager there´s also a global (\"IIFE\") build hosted on the unpkg CDN. Simply add the following `<script>` tag to the bottom of your HTML file:\n\n```html\n<script src=\"https://unpkg.com/natural-orderby/dist/umd/natural-orderby.production.min.js\"></script>\n```\n\nOnce you've added `natural-orderby` you will have access to the global `window.naturalOrderBy` variable.\n\n## Usage\n\n<!-- prettier-ignore -->\n```javascript\n// Using ES modules\nimport { orderBy } from 'natural-orderby';\n\n// Using CommonJS modules\n// const { orderBy } = require('natural-orderby');\n\nconst users = [\n  {\n    username: 'Bamm-Bamm',\n    ip: '192.168.5.2',\n    datetime: 'Fri Jun 15 2018 16:48:00 GMT+0200 (CEST)'\n  },\n  {\n    username: 'Wilma',\n    ip: '192.168.10.1',\n    datetime: '14 Jun 2018 00:00:00 PDT'\n  },\n  {\n    username: 'Dino',\n    ip: '192.168.0.2',\n    datetime: 'June 15, 2018 14:48:00'\n  },\n  {\n    username: 'Barney',\n    ip: '192.168.1.1',\n    datetime: 'Thu, 14 Jun 2018 07:00:00 GMT'\n  },\n  {\n    username: 'Pebbles',\n    ip: '192.168.1.21',\n    datetime: '15 June 2018 14:48 UTC'\n  },\n  {\n    username: 'Hoppy',\n    ip: '192.168.5.10',\n    datetime: '2018-06-15T14:48:00.000Z'\n  },\n];\n\nconst sortedUsers = orderBy(\n  users,\n  [v => v.datetime, v => v.ip],\n  ['desc', 'asc']\n);\n```\n\nThis is the return value of `orderBy()`:\n\n```javascript\n[\n  {\n    username: 'Dino',\n    ip: '192.168.0.2',\n    datetime: 'June 15, 2018 14:48:00',\n  },\n  {\n    username: 'Pebbles',\n    ip: '192.168.1.21',\n    datetime: '15 June 2018 14:48 UTC',\n  },\n  {\n    username: 'Bamm-Bamm',\n    ip: '192.168.5.2',\n    datetime: 'Fri Jun 15 2018 16:48:00 GMT+0200 (CEST)',\n  },\n  {\n    username: 'Hoppy',\n    ip: '192.168.5.10',\n    datetime: '2018-06-15T14:48:00.000Z',\n  },\n  {\n    username: 'Barney',\n    ip: '192.168.1.1',\n    datetime: 'Thu, 14 Jun 2018 07:00:00 GMT',\n  },\n  {\n    username: 'Wilma',\n    ip: '192.168.10.1',\n    datetime: '14 Jun 2018 00:00:00 PDT',\n  },\n];\n```\n\n## API Reference\n\n### `orderBy()`\n\nCreates an array of elements, natural sorted by specified `identifiers` and the corresponding sort `orders`. This method implements a stable sort algorithm, which means the original sort order of equal elements is preserved.\nIt also avoids the high overhead caused by [`Array.prototype.sort()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort) invoking a compare function multiple times per element within the array.\n\n#### Syntax\n\n<!-- prettier-ignore -->\n```typescript\norderBy<T>(\n  collection: ReadonlyArray<T>,\n  identifiers?: ReadonlyArray<Identifier<T>> | Identifier<T> | null,\n  orders?: ReadonlyArray<Order> | Order | null\n  locale?: string\n): Array<T>\n```\n\n| Type            | Value                                                                                |\n| :-------------- | :----------------------------------------------------------------------------------- |\n| `Identifier<T>` | <code>keyof T &#124; number &#124; (value: T) => unknown</code>                      |\n| `Order`         | <code>'asc' &#124; 'desc' &#124; (valueA: unknown, valueB: unknown) => number</code> |\n\n#### Description\n\n`orderBy()` sorts the elements of an array by specified identifiers and the corresponding sort orders in a natural order and returns a new array containing the sorted elements.\n\nIf `collection` is an array of primitives, `identifiers` may be unspecified. Otherwise, you should specify `identifiers` to sort by or `collection` will be returned unsorted. An identifier can be expressed by:\n\n- an index position, if `collection` is a nested array,\n- a property name, if `collection` is an array of objects,\n- a function which returns a particular value from an element of a nested array or an array of objects. This function will be invoked by passing one element of `collection`.\n\nIf `orders` is unspecified, all values are sorted in ascending order. Otherwise, specify an order of `'desc'` for descending or `'asc'` for ascending sort order of corresponding values. You may also specify a compare function for an order, which will be invoked by two arguments: `(valueA, valueB)`. It must return a number representing the sort order.\n\nIf you want to sort unicode strings according to a specific locale, please provide a string value for `locale` with a BCP 47 language tag. If the argument is unspecified, the host locale setting will be used.\n\n> Note: `orderBy()` always returns a new array, even if the original was already sorted.\n\n#### Examples\n\n<!-- prettier-ignore -->\n```javascript\nimport { orderBy } from 'natural-orderby';\n\n// Simple numerics\n\norderBy(['10', 9, 2, '1', '4']);\n// => ['1', 2, '4', 9, '10']\n\n\n// Floats\n\norderBy(['10.0401', 10.022, 10.042, '10.021999']);\n// => ['10.021999', 10.022, '10.0401', 10.042]\n\n\n// Float & decimal notation\n\norderBy(['10.04f', '10.039F', '10.038d', '10.037D']);\n// => ['10.037D', '10.038d', '10.039F', '10.04f']\n\n\n// Scientific notation\n\norderBy(['1.528535047e5', '1.528535047e7', '1.528535047e3']);\n// => ['1.528535047e3', '1.528535047e5', '1.528535047e7']\n\n\n// IP addresses\n\norderBy(['192.168.201.100', '192.168.201.12', '192.168.21.1']);\n// => ['192.168.21.1', '192.168.201.12', '192.168.21.100']\n\n\n// Filenames\n\norderBy(['01asset_0815.png', 'asset_47103.jpg', 'asset_151.jpg', '001asset_4711.jpg', 'asset_342.mp4']);\n// => ['001asset_4711.jpg', '01asset_0815.png', 'asset_151.jpg', 'asset_342.mp4', 'asset_47103.jpg']\n\n// Filenames - ordered by extension and filename\n\norderBy(\n    ['01asset_0815.png', 'asset_47103.jpg', 'asset_151.jpg', '001asset_4711.jpg', 'asset_342.mp4'],[v => v.split('.').pop(), v => v]\n);\n// => ['001asset_4711.jpg', 'asset_151.jpg', 'asset_47103.jpg', 'asset_342.mp4', '01asset_0815.png']\n\n\n// Dates\n\norderBy(['10/12/2018', '10/11/2018', '10/11/2017', '10/12/2017']);\n// => ['10/11/2017', '10/12/2017', '10/11/2018', '10/12/2018']\n\norderBy(['Thu, 15 Jun 2017 20:45:30 GMT', 'Thu, 3 May 2018 17:45:30 GMT', 'Thu, 15 Jun 2017 17:45:30 GMT']);\n// => ['Thu, 15 Jun 2017 17:45:30 GMT', 'Thu, 15 Jun 2018 20:45:30 GMT', 'Thu, 3 May 2018 17:45:30 GMT']\n\n\n// Money\n\norderBy(['$102.00', '$21.10', '$101.02', '$101.01']);\n// => ['$21.10', '$101.01', '$101.02', '$102.00']\n\n\n// Case-insensitive sort order\n\norderBy(['A', 'C', 'E', 'b', 'd', 'f']);\n// => ['A', 'b', 'C', 'd', 'E', 'f']\n\n\n// Default ascending sort order\n\norderBy(['a', 'c', 'f', 'd', 'e', 'b']);\n// => ['a', 'b', 'c', 'd', 'e', 'f']\n\n\n// Descending sort order\n\norderBy(['a', 'c', 'f', 'd', 'e', 'b'], null, ['desc']);\n// => ['f', 'e', 'd', 'c', 'b', 'a']\n\n\n// Custom compare function\n\norderBy([2, 1, 5, 8, 6, 9], null, [(valueA, valueB) => valueA - valueB]);\n// => [1, 2, 5, 6, 8, 9]\n\n\n// collections\n\nconst users = [\n  {\n    username: 'Bamm-Bamm',\n    ip: '192.168.5.2',\n    datetime: 'Fri Jun 15 2018 16:48:00 GMT+0200 (CEST)'\n  },\n  {\n    username: 'Wilma',\n    ip: '192.168.10.1',\n    datetime: '14 Jun 2018 00:00:00 PDT'\n  },\n  {\n    username: 'Dino',\n    ip: '192.168.0.2',\n    datetime: 'June 15, 2018 14:48:00'\n  },\n  {\n    username: 'Barney',\n    ip: '192.168.1.1',\n    datetime: 'Thu, 14 Jun 2018 07:00:00 GMT'\n  },\n  {\n    username: 'Pebbles',\n    ip: '192.168.1.21',\n    datetime: '15 June 2018 14:48 UTC'\n  },\n  {\n    username: 'Hoppy',\n    ip: '192.168.5.10',\n    datetime: '2018-06-15T14:48:00.000Z'\n  },\n];\n\norderBy(\n  users,\n  [v => v.datetime, v => v.ip],\n  ['desc', 'asc']\n);\n// => [\n//      {\n//        username: 'Dino',\n//        ip: '192.168.0.2',\n//        datetime: 'June 15, 2018 14:48:00',\n//      },\n//      {\n//        username: 'Pebbles',\n//        ip: '192.168.1.21',\n//        datetime: '15 June 2018 14:48 UTC',\n//      },\n//      {\n//        username: 'Bamm-Bamm',\n//        ip: '192.168.5.2',\n//        datetime: 'Fri Jun 15 2018 16:48:00 GMT+0200 (CEST)',\n//      },\n//      {\n//        username: 'Hoppy',\n//        ip: '192.168.5.10',\n//        datetime: '2018-06-15T14:48:00.000Z',\n//      },\n//      {\n//        username: 'Barney',\n//        ip: '192.168.1.1',\n//        datetime: 'Thu, 14 Jun 2018 07:00:00 GMT',\n//      },\n//      {\n//        username: 'Wilma',\n//        ip: '192.168.10.1',\n//        datetime: '14 Jun 2018 00:00:00 PDT',\n//      },\n//    ]\n```\n\n### `compare()`\n\nCreates a compare function that defines the natural sort order and which may be passed to [`Array.prototype.sort()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort).\n\n#### Syntax\n\n<!-- prettier-ignore -->\n```javascript\ncompare(options?: CompareOptions): CompareFn\n```\n\n| Type             | Value                                                         |\n| :--------------- | :------------------------------------------------------------ |\n| `CompareOptions` | <code>{ order?: 'asc' &#124; 'desc', locale?: string }</code> |\n| `CompareFn`      | <code>(valueA: unknown, valueB: unknown) => number</code>     |\n\n#### Description\n\n`compare()` returns a compare function that defines the natural sort order and which may be passed to [`Array.prototype.sort()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort).\n\nIf `options` or its property `order` is unspecified, values are sorted in ascending sort order. Otherwise, specify an order of `'desc'` for descending or `'asc'` for ascending sort order of values.\nIf unicode strings should be ordered corresponding to a specific locale setting, specify the according value for the options property `locale`. It must be a string with a BCP 47 language tag. If the argument is unspecified, the host locale setting will be used.\n\n#### Examples\n\n<!-- prettier-ignore -->\n```javascript\nimport { compare } from 'natural-orderby';\n\n// Simple numerics\n\n['10', 9, 2, '1', '4'].sort(compare());\n// => ['1', 2, '4', 9, '10']\n\n\n// Floats\n\n['10.0401', 10.022, 10.042, '10.021999'].sort(compare());\n// => ['10.021999', 10.022, '10.0401', 10.042]\n\n\n// Float & decimal notation\n\n['10.04f', '10.039F', '10.038d', '10.037D'].sort(compare());\n// => ['10.037D', '10.038d', '10.039F', '10.04f']\n\n\n// Scientific notation\n\n['1.528535047e5', '1.528535047e7', '1.528535047e3'].sort(compare());\n// => ['1.528535047e3', '1.528535047e5', '1.528535047e7']\n\n\n// IP addresses\n\n['192.168.201.100', '192.168.201.12', '192.168.21.1'].sort(compare());\n// => ['192.168.21.1', '192.168.201.12', '192.168.21.100']\n\n\n// Filenames\n\n['01asset_0815.jpg', 'asset_47103.jpg', 'asset_151.jpg', '001asset_4711.jpg', 'asset_342.mp4'].sort(compare());\n// => ['001asset_4711.jpg', '01asset_0815.jpg', 'asset_151.jpg', 'asset_342.mp4', 'asset_47103.jpg']\n\n\n// Dates\n\n['10/12/2018', '10/11/2018', '10/11/2017', '10/12/2017'].sort(compare());\n// => ['10/11/2017', '10/12/2017', '10/11/2018', '10/12/2018']\n\n['Thu, 15 Jun 2017 20:45:30 GMT', 'Thu, 3 May 2018 17:45:30 GMT', 'Thu, 15 Jun 2017 17:45:30 GMT'].sort(compare());\n// => ['Thu, 15 Jun 2017 17:45:30 GMT', 'Thu, 15 Jun 2018 20:45:30 GMT', 'Thu, 3 May 2018 17:45:30 GMT']\n\n\n// Money\n\n['$102.00', '$21.10', '$101.02', '$101.01'].sort(compare());\n// => ['$21.10', '$101.01', '$101.02', '$102.00']\n\n\n// Case-insensitive sort order\n\n['A', 'C', 'E', 'b', 'd', 'f'].sort(compare());\n// => ['A', 'b', 'C', 'd', 'E', 'f']\n\n\n// Default ascending sort order\n\n['a', 'c', 'f', 'd', 'e', 'b'].sort(compare());\n// => ['a', 'b', 'c', 'd', 'e', 'f']\n\n\n// Descending sort order\n\n['a', 'c', 'f', 'd', 'e', 'b'].sort(compare({ order: 'desc' }));\n// => ['f', 'e', 'd', 'c', 'b', 'a']\n\n\n// collections\n\nconst users = [\n  {\n    username: 'Bamm-Bamm',\n    lastLogin: {\n      ip: '192.168.5.2',\n      datetime: 'Fri Jun 15 2018 16:48:00 GMT+0200 (CEST)'\n    },\n  },\n  {\n    username: 'Wilma',\n    lastLogin: {\n      ip: '192.168.10.1',\n      datetime: '14 Jun 2018 00:00:00 PDT'\n    },\n  },\n  {\n    username: 'Dino',\n    lastLogin: {\n      ip: '192.168.0.2',\n      datetime: 'June 15, 2018 14:48:00'\n    },\n  },\n  {\n    username: 'Barney',\n    lastLogin: {\n      ip: '192.168.1.1',\n      datetime: 'Thu, 14 Jun 2018 07:00:00 GMT'\n    },\n  },\n  {\n    username: 'Pebbles',\n    lastLogin: {\n      ip: '192.168.1.21',\n      datetime: '15 June 2018 14:48 UTC'\n    },\n  },\n  {\n    username: 'Hoppy',\n    lastLogin: {\n      ip: '192.168.5.10',\n      datetime: '2018-06-15T14:48:00.000Z'\n    },\n  },\n];\n\nusers.sort((a, b) => compare()(a.lastLogin.ip, b.lastLogin.ip));\n// => [\n//      {\n//        username: 'Dino',\n//        lastLogin: {\n//          ip: '192.168.0.2',\n//          datetime: 'June 15, 2018 14:48:00'\n//        },\n//      },\n//      {\n//        username: 'Barney',\n//        lastLogin: {\n//          ip: '192.168.1.1',\n//          datetime: 'Thu, 14 Jun 2018 07:00:00 GMT'\n//        },\n//      },\n//      {\n//        username: 'Pebbles',\n//        lastLogin: {\n//          ip: '192.168.1.21',\n//          datetime: '15 June 2018 14:48 UTC'\n//        },\n//      },\n//      {\n//        username: 'Bamm-Bamm',\n//        lastLogin: {\n//          ip: '192.168.5.2',\n//          datetime: 'Fri Jun 15 2018 16:48:00 GMT+0200 (CEST)'\n//        },\n//      },\n//      {\n//        username: 'Hoppy',\n//        lastLogin: {\n//          ip: '192.168.5.10',\n//          datetime: '2018-06-15T14:48:00.000Z'\n//        },\n//      },\n//      {\n//        username: 'Wilma',\n//        lastLogin: {\n//          ip: '192.168.10.1',\n//          datetime: '14 Jun 2018 00:00:00 PDT'\n//        },\n//      },\n//    ]\n```\n\n## TypeScript Declarations\n\n`natural-orderby` is completely written in [TypeScript](https://www.typescriptlang.org/) and provides TypeScript declarations.\n\n## Credits\n\nInspired by [The Alphanum Algorithm](http://www.davekoelle.com/alphanum.html) from Dave Koelle.\n\n## License\n\nLicensed under the MIT License, Copyright © 2018 - present Olaf Ennen.\n\nSee [LICENSE](./LICENSE.md) for more information.\n","_attachments":{},"homepage":"https://yobacca.github.io/natural-orderby","bugs":{"url":"https://github.com/yobacca/natural-orderby/issues"},"license":"MIT"}