From f84bd2b89010d312106a91148620f1e10fa0d89f Mon Sep 17 00:00:00 2001 From: Argo-Lenovo Date: Sat, 19 Nov 2016 11:55:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=BC=93=E5=AD=98=E6=8E=92?= =?UTF-8?q?=E5=BA=8F=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bootstrap.Admin/Scripts/Profiles.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Bootstrap.Admin/Scripts/Profiles.js b/Bootstrap.Admin/Scripts/Profiles.js index 2635d417..de709913 100644 --- a/Bootstrap.Admin/Scripts/Profiles.js +++ b/Bootstrap.Admin/Scripts/Profiles.js @@ -67,7 +67,9 @@ result = $.parseJSON(result); if ($.isArray(result)) { var html = '
  • {2}{0}{3}
  • '; - var content = result.map(function (ele) { + var content = result.sort(function (x, y) { + return x.Key > y.Key ? 1 : -1; + }).map(function (ele) { var key = ele.Key.split('-')[0]; var css = 'list-default'; switch (key) {