diff --git a/features.js b/features.js index 4bf4a90..fef93e2 100755 --- a/features.js +++ b/features.js @@ -597,7 +597,7 @@ var FeatureSetProto = { .sort(function(a, b){ var i = loaded.indexOf(a[0]) var j = loaded.indexOf(b[0]) - return (i > 0 && j > 0) ? + return (i >= 0 && j >= 0) ? i - j : a[1] - b[1] }) diff --git a/package.json b/package.json index 8fc07a3..5f72b47 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ig-features", - "version": "3.1.4", + "version": "3.1.5", "description": "", "main": "features.js", "scripts": {