diff --git a/lib/servers.js b/lib/servers.js index 8dfc2fa..d2fd4cf 100644 --- a/lib/servers.js +++ b/lib/servers.js @@ -50,6 +50,9 @@ Servers.prototype.resetStats = function () { } Servers.prototype.sort = function (operation, options) { + if (options) { + options = options.get() + } var servers = this.servers.slice(0) if (servers.length > 1) { servers.sort(function (x, y) {