sort non string keys
This commit is contained in:
parent
111ea307a9
commit
19e790fc3a
1 changed files with 5 additions and 1 deletions
|
@ -215,7 +215,11 @@ oml.ui.viewer = function() {
|
||||||
})
|
})
|
||||||
return
|
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();
|
oml.$ui.annotationFolder.empty();
|
||||||
var visibleAnnotations = [];
|
var visibleAnnotations = [];
|
||||||
var hasAnnotations = false;
|
var hasAnnotations = false;
|
||||||
|
|
Loading…
Reference in a new issue