diff --git a/index.js b/index.js index 9a10df5f..ba14eff6 100644 --- a/index.js +++ b/index.js @@ -185,7 +185,9 @@ function withNoDuplicates(arr) { } seenParams[key] = true; - parameters.push(item); + // unshifting to preserve ordering. I don't believe it matters, but good to be + // consistent. + parameters.unshift(item); } while(--index > 0); return parameters;