sort non string keys

This commit is contained in:
j 2019-03-05 19:48:53 +01:00
parent 111ea307a9
commit 19e790fc3a

View file

@ -215,7 +215,11 @@ oml.ui.viewer = function() {
})
return
}
annotations = Ox.sortBy(annotations, sortKey)
var map = {}
map[sortKey] = function(value) {
return value.toString();
}
annotations = Ox.sortBy(annotations, sortKey, map)
oml.$ui.annotationFolder.empty();
var visibleAnnotations = [];
var hasAnnotations = false;