From 5c43d546d1b4c005d4d2988602561694735b3648 Mon Sep 17 00:00:00 2001 From: Jonathan Stewmon Date: Mon, 19 Dec 2011 17:26:48 -0600 Subject: [PATCH] fixed merge issue in Provider.load by reversing store keys in getStores --- lib/nconf/provider.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/nconf/provider.js b/lib/nconf/provider.js index 340a262..9807a41 100644 --- a/lib/nconf/provider.js +++ b/lib/nconf/provider.js @@ -294,7 +294,9 @@ Provider.prototype.load = function (callback) { var self = this; function getStores () { - return Object.keys(self.stores).map(function (name) { + var stores = Object.keys(self.stores); + stores.reverse(); + return stores.map(function (name) { return self.stores[name]; }); }