diff --git a/migrations/20161002_add_missing_webhook_type.js b/migrations/20161002_add_missing_webhook_type.js index 4f8aabd04a..f3f7b93422 100644 --- a/migrations/20161002_add_missing_webhook_type.js +++ b/migrations/20161002_add_missing_webhook_type.js @@ -72,6 +72,8 @@ function findUsersWithWebhooks () { }; return webhook; + }).sort((a, b) => { + return a.sort - b.sort; }); return {