diff options
| author | Arjun Roychowdhury <pliablepixels@gmail.com> | 2015-11-19 15:05:06 -0500 |
|---|---|---|
| committer | Arjun Roychowdhury <pliablepixels@gmail.com> | 2015-11-19 15:05:06 -0500 |
| commit | a4bfa2d5c56f07245815ef7e295e979e117de2c2 (patch) | |
| tree | a8f704c0a0ff8c545bdf08e3a36174aec15e5e40 /www/js/DataModel.js | |
| parent | 92e3bef0c9e0f2e8856806028852a23e4a160303 (diff) | |
#100 - respecting sequenceId of ZM
Former-commit-id: 22761bf1722628e81682d1a614b1169d7e0d0e6e
Diffstat (limited to 'www/js/DataModel.js')
| -rw-r--r-- | www/js/DataModel.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/www/js/DataModel.js b/www/js/DataModel.js index b4779551..c053bde8 100644 --- a/www/js/DataModel.js +++ b/www/js/DataModel.js @@ -916,6 +916,8 @@ angular.module('zmApp.controllers') .success(function (data) { console.log("HTTP success got " + JSON.stringify(data.monitors)); monitors = data.monitors; + monitors.sort(function(a,b) + {return parseInt(a.Monitor.Sequence)-parseInt(b.Monitor.Sequence);}); console.log("promise resolved inside HTTP success"); monitorsLoaded = 1; $ionicLoading.hide(); |
