We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7d0057b commit 1aff1a5Copy full SHA for 1aff1a5
1 file changed
frontend/vre/utils/record-ontology.js
@@ -5,13 +5,17 @@
5
import _ from 'lodash';
6
import { FilteredCollection } from './filtered.collection.js';
7
import { JsonLdNestedCollection } from './jsonld.model';
8
+import { canonicalSort } from './generic-functions.js';
9
10
/**
11
* A Backbone collection to access the properties defined by the ontology.
12
*/
13
export var PropertyList = JsonLdNestedCollection.extend({
14
url: "/static/edpop-record-ontology.json",
15
targetClass: "rdf:Property",
16
+ comparator: function(item) {
17
+ return canonicalSort(item.id);
18
+ },
19
});
20
21
export var properties = new PropertyList();
0 commit comments