diff --git a/routes/v1.js b/routes/v1.js index 006e2236..454d30b8 100644 --- a/routes/v1.js +++ b/routes/v1.js @@ -141,6 +141,7 @@ function addRoutes(app, peliasConfig) { postProc.confidenceScores(peliasConfig.api), postProc.confidenceScoresFallback(), postProc.interpolate(), + postProc.sortResponseData(require('pelias-sorting'), hasAdminOnlyResults), postProc.dedupe(), postProc.accuracy(), postProc.localNamingConventions(), @@ -149,7 +150,6 @@ function addRoutes(app, peliasConfig) { postProc.normalizeParentIds(), postProc.changeLanguage(), postProc.assignLabels(), - postProc.sortResponseData(require('pelias-sorting'), hasAdminOnlyResults), postProc.geocodeJSON(peliasConfig.api, base), postProc.sendJSON ]),