From 45aad9e683112de061f25c020fddb716d49a522e Mon Sep 17 00:00:00 2001 From: Dominic Tobias Date: Tue, 12 Mar 2019 21:38:09 +0000 Subject: [PATCH] Update index.js --- index.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/index.js b/index.js index ca8904a..9549603 100644 --- a/index.js +++ b/index.js @@ -66,9 +66,7 @@ function unflatten (target, opts) { : parsedKey } - var sortedKeys = Object.keys(target).sort(function (keyA, keyB) { - return keyA.length - keyB.length - }) + var sortedKeys = Object.keys(target).sort(); sortedKeys.forEach(function (key) { var split = key.split(delimiter)