Skip to content

Commit

Permalink
Merge pull request #371 from visualize-admin/fix/newer-cubes-sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
ptbrowne authored Feb 18, 2022
2 parents 6175627 + 709c213 commit 68a646c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/rdf/queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ const getLatestCube = async (cube: Cube): Promise<Cube> => {
if (newerCubes.length > 0) {
newerCubes.sort((a, b) =>
descending(
a.out(ns.schema.version)?.value,
b.out(ns.schema.version)?.value
+a.out(ns.schema.version)?.value!,
+b.out(ns.schema.version)?.value!
)
);

Expand Down

0 comments on commit 68a646c

Please sign in to comment.