From 5106eea86f0e0ea0c7918b328564b485d0bd859f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Peters?= Date: Tue, 27 Feb 2018 15:45:08 +0100 Subject: [PATCH] [Web] Fix sorting by returning a number, fixes #1092 --- data/web/js/mailbox.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/web/js/mailbox.js b/data/web/js/mailbox.js index ea7ce5f6..7f0129be 100644 --- a/data/web/js/mailbox.js +++ b/data/web/js/mailbox.js @@ -165,7 +165,7 @@ jQuery(function($){ }, "sortValue": function(value){ res = value.split("/"); - return res[0]; + return Number(res[0]); }, }, {"name":"max_quota_for_mbox","title":lang.mailbox_quota,"breakpoints":"xs sm"}, @@ -229,7 +229,7 @@ jQuery(function($){ }, "sortValue": function(value){ res = value.split("/"); - return res[0]; + return Number(res[0]); }, }, {"name":"spam_aliases","filterable": false,"title":lang.spam_aliases,"breakpoints":"xs sm md"},