Commit ac49a075 authored by Petter Goksøyr Åsen's avatar Petter Goksøyr Åsen
Browse files

patron-client: fix sortig of mediatype groups

parent 621f71e8
......@@ -232,13 +232,7 @@ class Publications extends React.Component {
if (a === 'http://data.deichman.no/mediaType#Book') {
return -1
}
if (a < b) {
return -1
}
if (a > b) {
return 1
}
return 0
return 1
}
Object.keys(publicationHoldersByMediaType).forEach(mediaTypeUri => {
publicationHoldersByMediaType[ mediaTypeUri ].sort(
......
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