sort-object-arrays
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -26,3 +26,6 @@ /*! | ||
} else if (Array.isArray(val)) { | ||
target[key] = val.sort(compare(fn)); | ||
if (typeof val[0] === 'string') { | ||
val.sort(compare(fn)); | ||
} | ||
target[key] = val; | ||
} | ||
@@ -29,0 +32,0 @@ } |
{ | ||
"name": "sort-object-arrays", | ||
"description": "Recursively sort the array values in an object.", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"homepage": "https://github.com/jonschlinkert/sort-object-arrays", | ||
@@ -39,6 +39,8 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)", | ||
"list": [ | ||
"sort-object" | ||
"group-object", | ||
"sort-object", | ||
"extend-shallow" | ||
] | ||
} | ||
} | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
# sort-object-arrays [](https://www.npmjs.com/package/sort-object-arrays) | ||
# sort-object-arrays [](https://www.npmjs.com/package/sort-object-arrays) [](https://travis-ci.org/jonschlinkert/sort-object-arrays) | ||
@@ -35,3 +35,5 @@ > Recursively sort the array values in an object. | ||
[sort-object](https://www.npmjs.com/package/sort-object): Sort the keys in an object. | [homepage](https://github.com/doowb/sort-object) | ||
* [extend-shallow](https://www.npmjs.com/package/extend-shallow): Extend an object with the properties of additional objects. node.js/javascript util. | [homepage](https://github.com/jonschlinkert/extend-shallow) | ||
* [group-object](https://www.npmjs.com/package/group-object): Group object keys and values into lists. | [homepage](https://github.com/doowb/group-object) | ||
* [sort-object](https://www.npmjs.com/package/sort-object): Sort the keys in an object. | [homepage](https://github.com/doowb/sort-object) | ||
@@ -64,2 +66,2 @@ ## Running tests | ||
_This file was generated by [verb](https://github.com/verbose/verb) on December 13, 2015._ | ||
_This file was generated by [verb](https://github.com/verbose/verb) on December 20, 2015._ |
4948
43
65