aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2016-02-27 23:54:27 +0100
committerHanspeter Portner <dev@open-music-kontrollers.ch>2016-02-27 23:54:27 +0100
commit36ffab96ec1d24703ce10e8648ea52ff0a13b9cc (patch)
treeee7710d526370d7f5fdfd0ca05146049bad30626
parent68b93fb629fa40885c6e63efd753959689080d41 (diff)
downloadmoony.lv2-36ffab96ec1d24703ce10e8648ea52ff0a13b9cc.tar.xz
order readable properties after writable ones.
-rw-r--r--web_ui/moony.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/web_ui/moony.js b/web_ui/moony.js
index 2b7abd2..6ccd005 100644
--- a/web_ui/moony.js
+++ b/web_ui/moony.js
@@ -275,7 +275,13 @@ function sort_properties() {
childs.sort(function(a, b) {
var id_a = a.getAttribute('data-id');
var id_b = b.getAttribute('data-id');
- return id_a.localeCompare(id_b);
+ var class_a = a.getAttribute('class');
+ var class_b = b.getAttribute('class');
+ var cmp = class_b.localeCompare(class_a);
+ if(cmp)
+ return cmp;
+ else
+ return id_a.localeCompare(id_b);
});
childs.detach().appendTo(props);