{"_id":"angular-order-object-by","_rev":"2-145b886f7bc8e21263c4d331dc52c1f9","name":"angular-order-object-by","dist-tags":{"latest":"1.3.0"},"versions":{"1.3.0":{"name":"angular-order-object-by","version":"1.3.0","authors":["Justin Klemm","Fabricio Quagliariello","Diego Urrutibehety"],"description":"An Angular filter to order an object of objects by a given attribute on the children objects","main":"src/ng-order-object-by.js","keywords":["angular","filter","orderBy","object"],"license":"MIT","ignore":["**/.*","bower_components","test"],"dependencies":{"angular":"^1.3.11-1.5"},"devDependencies":{"angular-mocks":"^1.3.11-1.5"},"resolutions":{"angular":"1.4.8"},"gitHead":"7e1ceec3570708abf60f07a27dec1bbc86aa4b5d","_id":"angular-order-object-by@1.3.0","_npmVersion":"5.7.1","_nodeVersion":"9.8.0","_npmUser":{"name":"hankmander","email":"henric@weld.io"},"dist":{"integrity":"sha512-Q/x9G+41zqiaZqusDcmbtwAZkjoLFcmavGWSJMYfIaE1MDS0839rdeREo+ewWU3HX7dNFJg67MqYasscYaOz/g==","shasum":"f2efc8b064918fb8dd64b6eb4026516443c004a2","tarball":"https://registry.npmjs.org/angular-order-object-by/-/angular-order-object-by-1.3.0.tgz","fileCount":9,"unpackedSize":16443,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDQl/15jtZq87LPrqdf7xJhqzvGLdyeEijfh1XpQNik8wIgJW7Fq3QQI8gAGF40aDkGElR9yu2cdJk/SH/62hMvDpg="}]},"maintainers":[{"name":"hankmander","email":"henric@weld.io"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/angular-order-object-by_1.3.0_1521468436568_0.6110615200297325"},"_hasShrinkwrap":false}},"time":{"created":"2018-03-19T14:07:16.568Z","1.3.0":"2018-03-19T14:07:16.618Z","modified":"2022-04-11T14:03:06.015Z"},"maintainers":[{"name":"hankmander","email":"henric@weld.io"}],"description":"An Angular filter to order an object of objects by a given attribute on the children objects","keywords":["angular","filter","orderBy","object"],"license":"MIT","readme":"# Angular orderObjectBy filter\n\n## Synopsis\n\nThis filter was [created by **Justin Klemm**](http://justinklemm.com/angularjs-filter-ordering-objects-ngrepeat/) because the default Angular orderBy filter fails to sort properly Objects of Objects in the context of ngRepeat.\n\n## Use\n\nInstall as Bower dependency: ```bower install angular-order-object-by```.\n\nInclude on your Angular module's dependencies:\n\n```javascript\nangular.module('YourModule', ['ngOrderObjectBy'])\n```\n\nThen, in your application views:\n\n```html\n<ul>\n    <li ng-repeat=\"object in objects | orderObjectBy: 'criteria' : direction\">...</li>\n</ul>\n```\n\nThanks to @diegou work now sorting by children's sudocument's properties is supported:\n\n```html\n<ul>\n    <li ng-repeat=\"object in objects | orderObjectBy: 'property.criteria' : direction\">...</li>\n</ul>\n```\n\nFor an example see [test/index.html](https://github.com/fmquaglia/ngOrderObjectBy/blob/master/test/index.html).\n\n## Tests\n\nYou need [karma](https://www.npmjs.org/package/karma), [karma-cli](https://www.npmjs.com/package/karma-cli), [karma-jasmine](https://www.npmjs.org/package/karma-jasmine), [phantomjs](https://www.npmjs.org/package/phantomjs), [karma-phantom-js-launcher](https://www.npmjs.org/package/karma-phantomjs-launcher) and [angular-mocks](https://www.npmjs.org/package/angular-mocks) in order to run the tests.\n\n```karma start karma.conf.js ```\n\n## Contributions\n\nFeel free to fork, and submit your pull requests using a feature branch on your fork.\n\nDon't forget to add tests! :wink:\n","readmeFilename":"README.md"}