diff --git a/src/database/mongo/sorted.js b/src/database/mongo/sorted.js
index 8fc21cb50a..1ac6fb6f85 100644
--- a/src/database/mongo/sorted.js
+++ b/src/database/mongo/sorted.js
@@ -592,7 +592,13 @@ module.exports = function (db, module) {
 		});
 	};
 
-	function sortedSetLex(method, sort, key, min, max, start, count, callback) {
+	function sortedSetLex(key, min, max, sort, start, count, callback) {
+		if (!callback) {
+			callback = start;
+			start = 0;
+			count = 0;
+		}
+
 		var query = {_key: key, value: {}};
 
 		if (min !== '-') {
@@ -697,7 +703,6 @@ module.exports = function (db, module) {
 		);
 	};
 
-
 	module.sortedSetIntersectCard = function (keys, callback) {
 		if (!Array.isArray(keys) || !keys.length) {
 			return callback(null, 0);