From f667b0f290f06e2e5ef0584e58248a1e0cd35f28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B05BEE13=2E=E5=8D=A2=E9=83=B4=E7=BE=A4?= Date: Wed, 2 Sep 2020 10:31:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=E6=8E=92=E5=BA=8Fbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- www/scripts/controllers/note-controller.js | 1 + 1 file changed, 1 insertion(+) diff --git a/www/scripts/controllers/note-controller.js b/www/scripts/controllers/note-controller.js index ad0fb6e..4748384 100644 --- a/www/scripts/controllers/note-controller.js +++ b/www/scripts/controllers/note-controller.js @@ -363,6 +363,7 @@ app.controller('noteCtr', ['$scope', '$state', '$stateParams', '$filter', '$wind $timeout(() => { $scope.loading = false; + tags.sort((a, b) => a.sort - b.sort); $scope.tags = tags; getNotes(); })