{"_id":"@antoniovdlc/sort","_rev":"7-0fa1c8391d942d13bcb64134c59bd089","name":"@antoniovdlc/sort","dist-tags":{"latest":"1.2.3"},"versions":{"0.1.0":{"name":"@antoniovdlc/sort","version":"0.1.0","description":"Custom compare functions for sorting arrays.","main":"dist/index.cjs.js","module":"dist/index.esm.js","types":"dist/index.d.ts","scripts":{"prepare":"husky install","type:check":"tsc --noEmit","format":"prettier --write --ignore-unknown {src,test}/*","format:check":"prettier --check {src,test}/*","test":"jest","pre-commit":"lint-staged","prebuild":"rimraf dist && mkdir dist","build":"npm run build:types && npm run build:lib","build:types":"tsc --declaration --emitDeclarationOnly --outDir dist","build:lib":"rollup -c","postversion":"git push && git push --tags"},"keywords":["sort","array","object","compare"],"author":{"name":"Antonio Villagra De La Cruz"},"repository":{"type":"git","url":"git+https://github.com/AntonioVdlC/sort.git"},"bugs":{"url":"https://github.com/AntonioVdlC/sort/issues"},"homepage":"https://github.com/AntonioVdlC/sort#readme","license":"MIT","devDependencies":{"@babel/core":"^7.14.6","@babel/preset-env":"^7.14.5","@babel/preset-typescript":"^7.14.5","@rollup/plugin-typescript":"^8.2.1","@types/jest":"^26.0.23","babel-jest":"^27.0.2","eslint":"^7.29.0","eslint-config-prettier":"^8.3.0","eslint-plugin-jest":"^24.3.6","husky":"^6.0.0","jest":"^27.0.4","jest-extended":"^0.11.5","lint-staged":"^11.0.0","prettier":"^2.3.1","rimraf":"^3.0.2","rollup":"^2.52.1","rollup-plugin-terser":"^7.0.2","tslib":"^2.3.0","typescript":"^4.3.4"},"gitHead":"dbaf0edcdb25efd1677dbe8dcc3a3873f0b940b5","_id":"@antoniovdlc/sort@0.1.0","_nodeVersion":"16.8.0","_npmVersion":"7.21.0","dist":{"integrity":"sha512-uPSpHhXc2LqXT4gfN8o0FnwPso6SFcLqqoy/tuyGd2ld1rndmBc5DNiILAvQyGNQJPTqmYEGE3rg1km0Pjp0Dg==","shasum":"c3cce26f49cbc7cf69895770fb71ee700f605df0","tarball":"https://registry.npmjs.org/@antoniovdlc/sort/-/sort-0.1.0.tgz","fileCount":6,"unpackedSize":8372,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhKR9gCRA9TVsSAnZWagAAc0kP+wY0WwqBqkCPM7juAdPE\nz/5itCS52zRI7ZtaVpfCcOk6fm/ivlzl+KO2wev6dlO1JtFvuMEkBLcK1kMx\ncbz7zMtR0rWF34+CwvGCa2H5dJI5cQTlexrxzSBIZvipU68IAplYeWEKnTa5\nsQX17Q2cMwvNo0EBbdMBWGy1LOjmqr7QNG0wlwlGOdWDV7rR7VojeeZ8dHVo\nwOtRTwVTreh7vFcZiAKwWEFABVRmtt8l6flngmsglPwGEyf4IVpOHQqAUQ2n\n4DlyqNgbtLbEfo1ORRvfOhJxsYAN/sOzp5NyEglVqKDp5fD/ojisNzybgRNG\n7R4yTAEE8WNTnGpAEB6NpLrYRhwz4XMos8qolyWsdA3tAb9/TiCoup6+F9nm\nRtbVVQmuQMaC0iFfGwK78c/PSmdJh1dFVpGc5OD4pjfElyNXrddNVPb4EIgP\n01MDCZyFsDz3HREVwrcM6xa5N8LQv7fBUiO0Pt30Lef8o5SYuH0xwZEQuZuT\nu+gZHl3O0PoY61tP8ZImpwTP6Flku2ubrwSwawyPWl3qPgHHvyR6CN0m4Qqg\n8DAE7gnYxXW24iwWEdtX7oPMoLynjDrWNBBR13S+FkQbQm0V2HOkQp3KHpzy\nk6ltTjJcXCK1S3zxU4IW2cU/8wfHb5MRsBDTaczxKIKh/+uINpn+eGpVMdQt\n9iV+\r\n=YiEw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDKuevSXX7VHfcM59lvU9I3KI2tJVBEPgFi1zt4S/FVhAiEAr8bARs6ddjqoui8h1aeJ/7qnqHkisMZYqxR9nfsSrJs="}]},"_npmUser":{"name":"antoniovdlc","email":"antonio.villagra.de.la.cruz@gmail.com"},"directories":{},"maintainers":[{"name":"antoniovdlc","email":"antonio.villagra.de.la.cruz@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sort_0.1.0_1630084960829_0.6990233143069569"},"_hasShrinkwrap":false},"1.0.0":{"name":"@antoniovdlc/sort","version":"1.0.0","description":"Custom compare functions for sorting arrays.","main":"dist/index.cjs.js","module":"dist/index.esm.js","types":"dist/index.d.ts","scripts":{"prepare":"husky install","type:check":"tsc --noEmit","format":"prettier --write --ignore-unknown {src,test}/*","format:check":"prettier --check {src,test}/*","test":"jest","pre-commit":"lint-staged","prebuild":"rimraf dist && mkdir dist","build":"npm run build:types && npm run build:lib","build:types":"tsc --declaration --emitDeclarationOnly --outDir dist","build:lib":"rollup -c","postversion":"git push && git push --tags"},"keywords":["sort","array","object","compare"],"author":{"name":"Antonio Villagra De La Cruz"},"repository":{"type":"git","url":"git+https://github.com/AntonioVdlC/sort.git"},"bugs":{"url":"https://github.com/AntonioVdlC/sort/issues"},"homepage":"https://github.com/AntonioVdlC/sort#readme","license":"MIT","devDependencies":{"@babel/core":"^7.14.6","@babel/preset-env":"^7.14.5","@babel/preset-typescript":"^7.14.5","@rollup/plugin-typescript":"^8.2.1","@types/jest":"^27.0.1","babel-jest":"^27.0.2","eslint":"^7.29.0","eslint-config-prettier":"^8.3.0","eslint-plugin-jest":"^24.3.6","husky":"^7.0.2","jest":"^27.0.4","jest-extended":"^0.11.5","lint-staged":"^11.0.0","prettier":"^2.3.1","rimraf":"^3.0.2","rollup":"^2.52.1","rollup-plugin-terser":"^7.0.2","tslib":"^2.3.0","typescript":"^4.3.4"},"gitHead":"9d72f5143c2b888aee3c43e5bf293aa6a2a7aa79","_id":"@antoniovdlc/sort@1.0.0","_nodeVersion":"16.9.1","_npmVersion":"7.21.1","dist":{"integrity":"sha512-hBIYQbF5cTrgtGC6cTMKMhmibY06jo4e+F6JWQCZdVaoWpZ9C5HpAUhQiGzWFi8AqDuJskityrV0/OyZrrGaiA==","shasum":"ce1b4ce8e2aafc5a4927232fc6b529b0bfe41eb9","tarball":"https://registry.npmjs.org/@antoniovdlc/sort/-/sort-1.0.0.tgz","fileCount":6,"unpackedSize":9803,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhQOHoCRA9TVsSAnZWagAAcs0P/RzsNswdKGicGJ9IPx42\nXTWRMZZLqNe8vfG4S6ml0nPYLLbTT4dj9hvuHT+1vJB2rzFgYVGcg+Y2RsuX\n2mSvLXn9jUBiM4qpcCRPHsojrvl1AlPT5hJW7H5w0bDSB9T80D74+0jRAl0G\nIYqdOjTXB70hN76s/S5PcsqX726ulm/YtHqSVXqXZZrFnFP2i2xisBVwJalB\n93A79hMeKOPoMaITs6NjCHihH6glccB5EEd6mdJI7aerDR9oiPfyB634NZju\noX4u/WSLoJ4w4PQbkOhuGdk1j0fh9ae5Hwyc09cOMF6bvujrhs1g7Zqxab5L\nwh/Dx3Xu8st68xuQwW6Oni/dRwHr9amDYdhDPaly0Ag8W71ArKWRxrfe0s4G\nmhI24SsVfdGIXdmrFPn6REnBo37WIcDjVz0RLNEwJflPfyGvw8jdvMirPBnO\n3hZYHVkeS2NVXSth9OT3bQIeZP78iimbNsPR84odTjsxuXyzvIlro1+GAUcc\nENJGc9jzXtuheJxDM3x8Xy7LSy7v+8nNSCQ9CDBUixNp4QwLfxvvktTV1btG\njX9pG5NFKOeo56wzSwUJ546+LeQDSbpqYWIna/AfLEVvNuRsPN7qZratrWzg\nnz6x0f+bhDxT9ReWbU63U5fX4eDBQVE4KzCSTcFOJk4+Qyf3cPIm9CLcFQ19\nix9q\r\n=mivS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCk3LJZvoX1abbfgEx68oK0Cma4MpL/g8Fnw4pUg58J0QIgfDs9CWzNrfFrAMoslGBOf2c1nNDkts5VCmbPUE6cCqw="}]},"_npmUser":{"name":"antoniovdlc","email":"antonio.villagra.de.la.cruz@gmail.com"},"directories":{},"maintainers":[{"name":"antoniovdlc","email":"antonio.villagra.de.la.cruz@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sort_1.0.0_1631642088541_0.05462054341940359"},"_hasShrinkwrap":false},"1.1.0":{"name":"@antoniovdlc/sort","version":"1.1.0","description":"Custom compare functions for sorting arrays.","main":"dist/index.cjs.js","module":"dist/index.esm.js","types":"dist/index.d.ts","scripts":{"prepare":"husky install","type:check":"tsc --noEmit","format":"prettier --write --ignore-unknown {src,test}/*","format:check":"prettier --check {src,test}/*","test":"jest","pre-commit":"lint-staged","prebuild":"rimraf dist && mkdir dist","build":"npm run build:types && npm run build:lib","build:types":"tsc --declaration --emitDeclarationOnly --outDir dist","build:lib":"rollup -c","postversion":"git push && git push --tags"},"keywords":["sort","array","object","compare"],"author":{"name":"Antonio Villagra De La Cruz"},"repository":{"type":"git","url":"git+https://github.com/AntonioVdlC/sort.git"},"bugs":{"url":"https://github.com/AntonioVdlC/sort/issues"},"homepage":"https://github.com/AntonioVdlC/sort#readme","license":"MIT","devDependencies":{"@babel/core":"^7.14.6","@babel/preset-env":"^7.14.5","@babel/preset-typescript":"^7.14.5","@rollup/plugin-typescript":"^8.2.1","@types/jest":"^27.0.1","babel-jest":"^27.0.2","eslint":"^8.0.0","eslint-config-prettier":"^8.3.0","eslint-plugin-jest":"^25.0.5","husky":"^7.0.2","jest":"^27.0.4","jest-extended":"^1.1.0","lint-staged":"^12.0.2","prettier":"^2.3.1","rimraf":"^3.0.2","rollup":"^2.52.1","rollup-plugin-terser":"^7.0.2","tslib":"^2.3.0","typescript":"^4.3.4"},"gitHead":"e68c9900f3489655db1f0a7910cacc66a832b704","_id":"@antoniovdlc/sort@1.1.0","_nodeVersion":"16.14.2","_npmVersion":"8.5.0","dist":{"integrity":"sha512-1nPZDVYBF2ZbI1GqwnSuL35Rzef8jIE9zPMR59nwWPuE43gTs57PIKlMCs0E0Vp+pBE39+X8f3CnV6Xy6OT1/w==","shasum":"dc41f5f7efa61a9c7935b01f1278597a9353efc9","tarball":"https://registry.npmjs.org/@antoniovdlc/sort/-/sort-1.1.0.tgz","fileCount":6,"unpackedSize":10567,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD3UqKwyJaPmTH9yJY5oRk9rqoQtcjCyS5jPPRxsJmNXAIgNH2KOUekGmJh9zj+mtoTBXdBNJUcZvZeeveT0sC90Rs="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiSww3ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmof+w/9HPHt8e1eseDyiU5kig3+XnSGoDzg2KM17kXENgo1IgIjnuIE\r\ndiBxnjXANhaTRjWzKWHsrCvHuEjfFal3Ltd0cICy2ZC1xaJlPSzVDxtlAAsE\r\ndUc6FZ8SEEWjwkiQ3iKpX3ow/WT9o4wZXS7OrZPWOCeKc8nIdnFsDYyKxpDp\r\nrggAZunCZQQyOvIqGa2Q+RABztjYscKORPNopP+AcPX5aZfkTLdp1KHozzPn\r\nm/DlkAuTSF2mbh9F+CTqYDa4pSA4N3whsUzd9wfeze2/EnFXgI8c3d0W6297\r\nA/Ya5hn8fOOdkj9y2YtwrLqh3hHf2ChM/iTn307wYOa5ar3J345LAv4hxVhR\r\nzC9/Jceo+mZPOJTqv5ACHYcwTTpfMjngeHRX6E6C+mD1YgBi/RP5Xqo71nk1\r\nOcWZjQezNSDtYy2enZ6wVFg6CGBi3SaVL3xh1osgYM3h12WyQgOOOL4+uRh1\r\nEdr4eHJ833MJdBhaH+vD3Jtmua5ViLPzIZ7I1Mf62KOK6Dl/EG6MTwFL6wpm\r\nT1t9BfKCE2gxd2hkYoFibyeGfNwwlJRzLn71v0yVvPlEn4LOlsS8b4ZOZOHB\r\nniT0gkf5UScw7VD945pbv99uqG5IgodrPwTWDIA7zlXpWb7tP3F/ipBXTEqF\r\n4k2bQoUZCoS+A0vF6NxR7evFPt7KL38zxSA=\r\n=U9vp\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"antoniovdlc","email":"antonio.villagra.de.la.cruz@gmail.com"},"directories":{},"maintainers":[{"name":"antoniovdlc","email":"antonio.villagra.de.la.cruz@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sort_1.1.0_1649085495614_0.9000667556750233"},"_hasShrinkwrap":false},"1.2.0":{"name":"@antoniovdlc/sort","version":"1.2.0","description":"Custom compare functions for sorting arrays.","main":"dist/index.cjs.js","module":"dist/index.esm.js","types":"dist/index.d.ts","scripts":{"prepare":"husky install","type:check":"tsc --noEmit","format":"prettier --write --ignore-unknown {src,test}/*","format:check":"prettier --check {src,test}/*","test":"jest","pre-commit":"lint-staged","prebuild":"rimraf dist && mkdir dist","build":"npm run build:types && npm run build:lib","build:types":"tsc --declaration --emitDeclarationOnly --outDir dist","build:lib":"rollup -c","postversion":"git push && git push --tags"},"keywords":["sort","array","object","compare"],"author":{"name":"Antonio Villagra De La Cruz"},"repository":{"type":"git","url":"git+https://github.com/AntonioVdlC/sort.git"},"bugs":{"url":"https://github.com/AntonioVdlC/sort/issues"},"homepage":"https://github.com/AntonioVdlC/sort#readme","license":"MIT","devDependencies":{"@babel/core":"^7.14.6","@babel/preset-env":"^7.14.5","@babel/preset-typescript":"^7.14.5","@rollup/plugin-typescript":"^8.2.1","@types/jest":"^27.0.1","babel-jest":"^27.0.2","eslint":"^8.0.0","eslint-config-prettier":"^8.3.0","eslint-plugin-jest":"^25.0.5","husky":"^7.0.2","jest":"^27.0.4","jest-extended":"^1.1.0","lint-staged":"^12.0.2","prettier":"^2.3.1","rimraf":"^3.0.2","rollup":"^2.52.1","rollup-plugin-terser":"^7.0.2","tslib":"^2.3.0","typescript":"^4.3.4"},"dependencies":{"get-value-key":"^0.1.0"},"gitHead":"307fc5921e4a0b9f711a875dce8b314c17185db0","_id":"@antoniovdlc/sort@1.2.0","_nodeVersion":"16.14.2","_npmVersion":"8.5.0","dist":{"integrity":"sha512-xeqZzK3urimkHyf6RG58zB0je4E+wT12ZIM7PFFFODH9WBkZC/7NdLee2PB+QhDcswGdlt99YZwFXTTVRoVGSg==","shasum":"c91b2705fb0e98d18c8529421ee6662bca757fe1","tarball":"https://registry.npmjs.org/@antoniovdlc/sort/-/sort-1.2.0.tgz","fileCount":6,"unpackedSize":10499,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDliYK+uH8d7aWO7SVjMF/rufucMHGZUWyMEyPDN5RGoAiAkk0kc8gBfSGujkmBW3tdNcXssMGFStkeAFduurqRAog=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiSxxuACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpB/w//YB+wBgznJqpDUcx524z/gsofKGEeXKyGRylIDwgdoSCg8+jc\r\nJfhnvGLCozHK+KhX2G/n9ewjsehv2CLT9tW/34VirsJuigogiGVAgx8ufTG5\r\nrbBC+pq/ilL3tgnK996qeVNzfjNh950ttQqMNjkzm0iOy5VE6VhteTug85o8\r\nAe9VBRuFxH9nF0bKzFERJFdvNkf5ZdXIjG8MM5YK6Fss4/zKCk/pfOSdZZ2V\r\nCzL2cQqqE5B3TSV+K3VaD+b81n338gU4y90t9Jpmp6Qln9LKFgUK+gwQcLlP\r\nk3RyZazdn09GM/hC9fpHXdf7fReMx3ZPea2L1w4MpMZQheB6m/lp8z6vw55j\r\nAMa+tVYWi7vubXY72u61+rRCyhqWhrHiLOVsI/xtO5pJiKhi70lLf6QglBsJ\r\nYHWUqFr9QPUHIgHfL4OFEzaGlNiNuMC/0IYWwcH7iJTtTVRXhDMjb2B0qBhz\r\noCCSb+sP6ybgY+ME4W6XPtPWXbOAU8GFzTHeooyk1q9gdRFk06Ky2o23wSNx\r\n9b/0jBlkGcrfU8kDMyTrWqvqOVOfcF36A48X5i870HZUARskjrR3sMnOsKYB\r\nGk5Yh9bP/KCd4smGXVA0j8OlrZVOFBD+zZ5NO/Sab1ntCFr0tLWovu0V8T74\r\n9ZRu6jw5Kq/bKrPE5guAmUbYW8F7UOHaW54=\r\n=jnGM\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"antoniovdlc","email":"antonio.villagra.de.la.cruz@gmail.com"},"directories":{},"maintainers":[{"name":"antoniovdlc","email":"antonio.villagra.de.la.cruz@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sort_1.2.0_1649089646780_0.6108667995444637"},"_hasShrinkwrap":false},"1.2.1":{"name":"@antoniovdlc/sort","version":"1.2.1","description":"Custom compare functions for sorting arrays.","main":"dist/index.cjs.js","module":"dist/index.esm.js","types":"dist/index.d.ts","scripts":{"prepare":"husky install","type:check":"tsc src/*.ts --noEmit","format":"prettier --write --ignore-unknown {src,test}/*","format:check":"prettier --check {src,test}/*","test":"vitest run --coverage","pre-commit":"lint-staged","prebuild":"rimraf dist && mkdir dist","build":"npm run build:types && npm run build:lib","build:types":"tsc src/*.ts --declaration --emitDeclarationOnly --outDir dist","build:lib":"rollup -c","postversion":"git push && git push --tags"},"keywords":["sort","array","object","compare"],"author":{"name":"Antonio Villagra De La Cruz"},"repository":{"type":"git","url":"git+https://github.com/AntonioVdlC/sort.git"},"bugs":{"url":"https://github.com/AntonioVdlC/sort/issues"},"homepage":"https://github.com/AntonioVdlC/sort#readme","license":"MIT","devDependencies":{"@rollup/plugin-typescript":"^8.2.1","c8":"^7.11.0","eslint":"^8.0.0","eslint-config-prettier":"^8.3.0","eslint-plugin-jest":"^25.0.5","husky":"^7.0.2","lint-staged":"^12.0.2","prettier":"^2.3.1","rimraf":"^3.0.2","rollup":"^2.52.1","rollup-plugin-terser":"^7.0.2","tslib":"^2.3.0","typescript":"^4.3.4","vite":"^2.9.1","vitest":"^0.9.3"},"dependencies":{"get-value-key":"^0.1.0"},"gitHead":"99f00c04bb15e7355701a0895fab3e939cac491e","_id":"@antoniovdlc/sort@1.2.1","_nodeVersion":"16.14.2","_npmVersion":"8.5.0","dist":{"integrity":"sha512-VJFelu758/2HF1/9SUI7pRxY9yukuoJqRCAy+l556o7mTA+e+P14BPEheF69dNIfWs7UnPvEgnCkFlVlYsAP/g==","shasum":"014b30ef501e3a35893ba848b38f6e25aee37316","tarball":"https://registry.npmjs.org/@antoniovdlc/sort/-/sort-1.2.1.tgz","fileCount":6,"unpackedSize":10529,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCJd4FmyHhHbjDg6TN4hRag2Jy8FtNuh43Ji7dItYh27gIgX01QmQR7ja19M+Ge82wl659R2U+2BXfco6EPWRbQD50="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiU/lpACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp7EA//VsfgWZiFcrokaYqgNplyN87N9t33AGcW0YmaoWTnbUyReGqr\r\niJkJOf2ZvJRGBLsD4+oSS0WVYI2m6/G0JDbIMTl+PaIk4h0biNWU493m6Unx\r\njp1pn4w8TYQ1oAR1SfvLHxOmNJlsFudW+MYiYqVqjdT7wfcM5AfM5lagIQfT\r\npyB0al/LOlObYWs4iz+UQKgDy7G2Ghn1agRaIRpJkJ9omKpCKbvmApUilwu2\r\nzkFt0V35bwjY8S6/uSilCRrjvDjTiYEhiL64iaQgozuyDBH/L+P+/JLIJVXr\r\nzgobsehKtwndl/A+pa0rPkGaF6GxlKxnsel5OyRpeuPstw74zHAbEj5a799N\r\nqJQwEcSmUQMCIgQ9qkuv4yPOmRSBFVdxoDKMMImhfUWPKrCR/XxREPHiILRU\r\n6+nL64kRAGckqsITJwjxNMcycKohO3h4x6yENWvXy6p7VwOI7UY5ntMaWvLE\r\np4zqHxZ6sWqEtUiARddHhwnYBetEfC+LrCiGfbeBNi9Kq9L1nuFIU7JKPw5l\r\nSTC/wL3cqU4gpJcPK+i7N99MWf5TxVTcBMnZha7bNNQGItO7UoUGyAmgUOvc\r\nhcQMiISyttXmwLq+XPmRcoql38tbpml+MnIFOHzUSUTldXLofpnzx2oA8D1E\r\n14b6Lwv4cpvUnP1vG/A1JhocS30PGEr/FA8=\r\n=F8tQ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"antoniovdlc","email":"antonio.villagra.de.la.cruz@gmail.com"},"directories":{},"maintainers":[{"name":"antoniovdlc","email":"antonio.villagra.de.la.cruz@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sort_1.2.1_1649670505727_0.6227028867943827"},"_hasShrinkwrap":false},"1.2.2":{"name":"@antoniovdlc/sort","version":"1.2.2","description":"Custom compare functions for sorting arrays.","main":"dist/index.cjs.js","module":"dist/index.esm.js","types":"dist/index.d.ts","scripts":{"prepare":"husky install","type:check":"tsc src/*.ts --noEmit","format":"prettier --write --ignore-unknown {src,test}/*","format:check":"prettier --check {src,test}/*","test":"vitest run --coverage","pre-commit":"lint-staged","prebuild":"rimraf dist && mkdir dist","build":"npm run build:types && npm run build:lib","build:types":"tsc src/*.ts --declaration --emitDeclarationOnly --outFile dist/index.d.ts","build:lib":"rollup -c","postversion":"git push && git push --tags"},"keywords":["sort","array","object","compare"],"author":{"name":"Antonio Villagra De La Cruz"},"repository":{"type":"git","url":"git+https://github.com/AntonioVdlC/sort.git"},"bugs":{"url":"https://github.com/AntonioVdlC/sort/issues"},"homepage":"https://github.com/AntonioVdlC/sort#readme","license":"MIT","devDependencies":{"@rollup/plugin-typescript":"^8.2.1","c8":"^7.11.0","eslint":"^8.0.0","eslint-config-prettier":"^8.3.0","husky":"^7.0.2","lint-staged":"^12.0.2","prettier":"^2.3.1","rimraf":"^3.0.2","rollup":"^2.52.1","rollup-plugin-terser":"^7.0.2","tslib":"^2.3.0","typescript":"^4.3.4","vite":"^2.9.1","vitest":"^0.9.3"},"dependencies":{"get-value-key":"^0.1.0"},"gitHead":"eb2a3e07a49eaa35e44bfc5e50646b213ce1e666","_id":"@antoniovdlc/sort@1.2.2","_nodeVersion":"16.14.2","_npmVersion":"8.5.0","dist":{"integrity":"sha512-0B+iAaUq47GzqKPDKH0LQBfSBvBCM1ROnjk4J1HZOZCeMiCKEbi8qVlUjYFG15TbMQ40kfmrX8uLhrRwKcxK5A==","shasum":"261cdcf4343653f6fd5bbed9a706296c374606a7","tarball":"https://registry.npmjs.org/@antoniovdlc/sort/-/sort-1.2.2.tgz","fileCount":6,"unpackedSize":11645,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC5rAJMH1zFozfJlsuwsz/dn/G5E1FQ11FE9rA1G2OGCwIhAJp8+0R0zPgu1vtkspEp6NW2+zT2gLCdChdD9Xv+/fFd"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiVZDKACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoDgQ/8DTgOhs0yW6wK7R6jK0FdTcale+kP/SoNxFh8LPo0v5YdYmAX\r\nPhPrEVnidh+H6Hj/hI6XcamUWWWYCOPyC9xevAhkQMuMZlgYmRAx8FYbk3Ba\r\nWCFJDEQ0p4IarLnUnUEwnu+KVPvykkpfoI5Tj8w/b0sTc+xEeLZIaokrWYIr\r\naPpbVYErv9LUA6zsr2Ny8jr5F8Ao99OnGb3W0A/BGVEvHJa5K7JiY7bIIf57\r\nnI3py03g6R5fPw9MLrpPB6JIKkOgwsrczPKfetCPJ/lg7j4vOf4L5H4u+Gh0\r\n/08q5P6vX1VIaRlmvXuUbuoebmk43U6tWN0ExVOpy6Za6ETmvfVB+nXfCifV\r\nwm6YMVR3rbWqCmqZTaRyxNJKIvmRjFHMldXU8SypibkebxfkpaMxGiXECEX/\r\n+oLvw69vM9JieDM36tbblbXh6kcGXhpkkXOX6ji+ygAX6ovqRn4Ho8sbxO/g\r\nT0VJxx6PkB3RseTM3NavRoEaI4urLbVzksUpSbPXxMTRQ7U4DdnB2sOj1dxO\r\nkBAKnIe9+MESE5YYbOceOV7e1sNwPzdtP60RLRh9WFzes5999D/qRDDLWmhK\r\neKBQG8JocLuBKna71wcgBeZVIXqT8NkluY+o6+oamFym4Z+r4Txy++jr7E/M\r\nzVR7gMLJeV7zB+hoGHRlfwQmVBrSkQmGv8w=\r\n=gMuu\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"antoniovdlc","email":"antonio.villagra.de.la.cruz@gmail.com"},"directories":{},"maintainers":[{"name":"antoniovdlc","email":"antonio.villagra.de.la.cruz@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sort_1.2.2_1649774793955_0.5269171672419339"},"_hasShrinkwrap":false},"1.2.3":{"name":"@antoniovdlc/sort","version":"1.2.3","description":"Custom compare functions for sorting arrays.","main":"dist/index.cjs.js","module":"dist/index.esm.js","types":"dist/index.d.ts","scripts":{"prepare":"husky install","type:check":"tsc src/*.ts --noEmit","format":"prettier --write --ignore-unknown {src,test}/*","format:check":"prettier --check {src,test}/*","test":"vitest run --coverage","pre-commit":"lint-staged","prebuild":"rimraf dist && mkdir dist","build":"npm run build:types && npm run build:lib","build:types":"tsc src/*.ts --declaration --emitDeclarationOnly --outDir dist","build:lib":"rollup -c","postversion":"git push && git push --tags"},"keywords":["sort","array","object","compare"],"author":{"name":"Antonio Villagra De La Cruz"},"repository":{"type":"git","url":"git+https://github.com/AntonioVdlC/sort.git"},"bugs":{"url":"https://github.com/AntonioVdlC/sort/issues"},"homepage":"https://github.com/AntonioVdlC/sort#readme","license":"MIT","devDependencies":{"@rollup/plugin-typescript":"^8.2.1","c8":"^7.11.0","eslint":"^8.0.0","eslint-config-prettier":"^8.3.0","husky":"^7.0.2","lint-staged":"^12.0.2","prettier":"^2.3.1","rimraf":"^3.0.2","rollup":"^2.52.1","rollup-plugin-terser":"^7.0.2","tslib":"^2.3.0","typescript":"^4.3.4","vite":"^2.9.1","vitest":"^0.9.3"},"dependencies":{"get-value-key":"^0.1.0"},"gitHead":"f477da3b37324fdb4766de1616968d9a76e24921","_id":"@antoniovdlc/sort@1.2.3","_nodeVersion":"16.14.2","_npmVersion":"8.5.0","dist":{"integrity":"sha512-pT+Aq0e83nKdFmFNv1ZMnwG012kwHZ+IM36muho7FZmE4+T7g6hfB6nCif0oE+KomcQUL/Qmtp5IoZpoMQ0RuA==","shasum":"ddc2964b0ac8a2e7f6ec7bb099a012415b923ce3","tarball":"https://registry.npmjs.org/@antoniovdlc/sort/-/sort-1.2.3.tgz","fileCount":8,"unpackedSize":11411,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHB3t58mgSEE8EbwFcV9V+737sXPOrUDcYUM8Xztmy+9AiB4qJm2D1Mx2Tt4ZO4rY9o8kxnDnsQSRNY9E6gGQRl4lQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiVZKHACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq18g/+McVVn8DqFsPpX8UhrjH1CJdrdfX1oCph1gf1w8rsL/+D28HF\r\nr9zcpdebI9fSTTXKCEn+aNZ93Xz3wQii+VaT+rGIxh+DMqTNAxEu6iDVNoU3\r\nVWLS3Xjes2YM0rLIQTL/Fa4JWtU83j2uaVOW7rwTKJ3zN7pxbGNrfQh3qIAy\r\nJOR3fXKZangTI+CcmM/5NVCN2XaG2hjfT4JD5ohAX7iu7Q2wa4B8QYCLw9er\r\nVNNcGU4SJmkBgtDq9lft9LYQh7HHCnta6YUnxvxWaeq7oaIe6iG7qzpZTPod\r\nxqDc4h156w47uhax8Cnk/szMLgvdMEQ3W/XQzv6U6LSlhLOAZBcbIb2F7caf\r\nfurmsoiZ1xK8bVPgGQoiXKdBj4O/IvPmxsfflhDpyGN0iRchRNFOkLb8JAho\r\nyEEvKlQXFoMt0yReZUYoih/klQZqrNMk5pi/kPIWYRWxAJwsD+ZmLYxItw9T\r\njtvJxoGDQmGrbjALErkb4LTLYrUEiHl5pk5rDr/DxV3WMjFc7iufjvANkZTq\r\nqIP2T6xBvhacTKlBMhlu03kzG46zRIDIQbhAjGT8eSg6UyeGSE71ul2fTssZ\r\nU1zpPkyYXAc7yH0fRt5iqpRmX/wt16jRvTuwVsFxAhbkPQ87dUtKBFHqIYZa\r\noRGO6QB46MFysUmL8ZPOFN/nWPDd2HQ4kOA=\r\n=AF7m\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"antoniovdlc","email":"antonio.villagra.de.la.cruz@gmail.com"},"directories":{},"maintainers":[{"name":"antoniovdlc","email":"antonio.villagra.de.la.cruz@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sort_1.2.3_1649775239452_0.12364735023698059"},"_hasShrinkwrap":false}},"time":{"created":"2021-08-27T17:22:40.786Z","0.1.0":"2021-08-27T17:22:40.975Z","modified":"2022-04-12T14:53:59.673Z","1.0.0":"2021-09-14T17:54:48.666Z","1.1.0":"2022-04-04T15:18:15.792Z","1.2.0":"2022-04-04T16:27:26.908Z","1.2.1":"2022-04-11T09:48:25.894Z","1.2.2":"2022-04-12T14:46:34.120Z","1.2.3":"2022-04-12T14:53:59.592Z"},"maintainers":[{"name":"antoniovdlc","email":"antonio.villagra.de.la.cruz@gmail.com"}],"description":"Custom compare functions for sorting arrays.","homepage":"https://github.com/AntonioVdlC/sort#readme","keywords":["sort","array","object","compare"],"repository":{"type":"git","url":"git+https://github.com/AntonioVdlC/sort.git"},"author":{"name":"Antonio Villagra De La Cruz"},"bugs":{"url":"https://github.com/AntonioVdlC/sort/issues"},"license":"MIT","readme":"# sort\n\n[![version](https://img.shields.io/npm/v/@antoniovdlc/sort.svg)](http://npm.im/@antoniovdlc/sort)\n[![issues](https://img.shields.io/github/issues-raw/antoniovdlc/sort.svg)](https://github.com/AntonioVdlC/sort/issues)\n[![downloads](https://img.shields.io/npm/dt/@antoniovdlc/sort.svg)](http://npm.im/@antoniovdlc/sort)\n[![license](https://img.shields.io/npm/l/@antoniovdlc/sort.svg)](http://opensource.org/licenses/MIT)\n\nCustom compare functions for sorting arrays.\n\n## Installation\n\nThis package is distributed via npm:\n\n```\nnpm install @antoniovdlc/sort\n```\n\n## Motivation\n\nSorting arrays is a common operation in JavaScript, so this library provides some common custom compare functions to have a more declarative way of sorting arrays.\n\n## Usage\n\nYou can use this library either as an ES module or a CommonJS package:\n```js\nimport { alphabetically, chronologically, numerically } from \"@antoniovdlc/sort\";\n```\n*- or -*\n```js\nconst { alphabetically, chronologically, numerically } = require(\"@antoniovdlc/sort\");\n```\n\n## Examples\n\nAll compare functions can be used out of the box for sorting as follows:\n\n```js\nimport { numerically } from \"@antoniovdlc/sort\";\n\nconst arr = [1, 2, 2, 23, 30, 4];\narr.sort(numerically); // [1, 2, 2, 4, 23, 30]\n```\nBy default, sorting is doing in an ascending fashion. All compare functions also provide utility fields for descending sorting as well as an explicit ascending sort.\n\n```js\nimport { numerically } from \"@antoniovdlc/sort\";\n\nconst arr = [1, 2, 2, 23, 30, 4];\narr.sort(numerically.asc); // [1, 2, 2, 4, 23, 30]\n```\n\n```js\nimport { numerically } from \"@antoniovdlc/sort\";\n\nconst arr = [1, 2, 2, 23, 30, 4];\narr.sort(numerically.desc); // [30, 23, 4, 2, 2, 1]\n```\n\nFinally, all compare functions provide a `.by(\"key\")` function which allows to sort arrays of objects by nested fields:\n\n```js\nconst arr = [\n  { name: \"Bob\", age: 23 },\n  { name: \"Alice\", age: 32 },\n  { name: \"Tom\", age: 60 },\n  { name: \"Candice\", age: 45 },\n];\narr.sort(numerically.by(\"age\"));\n/*\n[\n  { name: \"Bob\", age: 23 },\n  { name: \"Alice\", age: 32 },\n  { name: \"Candice\", age: 45 },\n  { name: \"Tom\", age: 60 },\n]\n*/\n```\n\nThe same `.asc` and `.desc` functions can be used for sorting arrays of objects:\n\n```js\nconst arr = [\n  { name: \"Bob\", age: 23 },\n  { name: \"Alice\", age: 32 },\n  { name: \"Tom\", age: 60 },\n  { name: \"Candice\", age: 45 },\n];\narr.sort(numerically.by(\"age\").desc);\n/*\n[\n  { name: \"Tom\", age: 60 },\n  { name: \"Candice\", age: 45 },\n  { name: \"Alice\", age: 32 },\n  { name: \"Bob\", age: 23 },\n]\n*/\n```\n\n## Compare functions\n\nHere is a list of provided compare functions:\n\n### alphabetically\nSorts an array in alphabetical (string) order. Case sensitive.\n\n### alphabeticallyBase\nSorts an array in alphabetical (string) order. Case insensitive.\n\n### chronologically\nSorts an array in chronological (date) order.\n\n### numerically\nSorts an array in numerical (number) order.\n\n## Creating custom sorting functions\nYou can create your own sorting functions by using the `createCompareFunction()` function:\n\n```js\nimport { createCompareFunction } from \"@antoniovdlc/sort\";\n\nconst alphabeticallyLocale = createCompareFunction(String, (a, b) => a.localeCompare(b));\n\nconst arr = [\n  { name: \"Bob\", age: 23 },\n  { name: \"Alice\", age: 32 },\n  { name: \"Tom\", age: 60 },\n  { name: \"Candice\", age: 45 },\n];\narr.sort(alphabeticallyLocale.by(\"name\").desc);\n```\n\nOut of the box, your custom sorting functions have the same attributes and methods as the default sorting functions (such as `.desc` or `.by()`)!\n\n## Combining sorting functions\n\nYou can also combine multiple sorting functions.\n\nLet's say that for example, you need to sort an array of users first by name, and then by age (descending). You can achieve that as follows:\n\n```js\nconst arr = [\n  { name: \"Bob\", age: 23 },\n  { name: \"Alice\", age: 32 },\n  { name: \"Tom\", age: 60 },\n  { name: \"Candice\", age: 45 },\n  { name: \"Alice\", age: 28 },\n];\narr.sort(combine([alphabetically.by(\"name\"), numerically.by(\"age\").desc]));\n/*\n[\n  { name: \"Alice\", age: 32 },\n  { name: \"Alice\", age: 28 },\n  { name: \"Bob\", age: 23 },\n  { name: \"Candice\", age: 45 },\n  { name: \"Tom\", age: 60 },\n]\n*/\n```\n\n## License\nMIT","readmeFilename":"README.md"}