Commit 79d36746 authored by Laurent Wouters's avatar Laurent Wouters
Browse files

[fix] Changed priority for views

parent 6c3059fdfb1b
......@@ -32,7 +32,7 @@ export class RdfTriplesRendering implements implementation.ViewImplementation {
}
priorityFor(store: $rdf.Formula, resource: application.Resource): number {
return Number.MAX_SAFE_INTEGER;
return 0;
}
render(
......
......@@ -64,7 +64,7 @@ export interface ViewImplementation {
/**
* Gets the view's priority
* - 0 to Number.MAX_SAFE_INTEGER for valid view with decreasing priority
* - 0 to Number.MAX_SAFE_INTEGER for valid view with increasing priority
* - -1 for inappropriate views (must not be selected)
* @param store The RDF store holding the data to be rendered
* @param target The target resource to be rendered
......@@ -181,7 +181,7 @@ function evaluateViewsFor(
.filter((a: RenderingEvaluation) => a.priority >= 0)
.sort(
(x: RenderingEvaluation, y: RenderingEvaluation) =>
x.priority - y.priority
y.priority - x.priority
);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment