-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
oaipmh: update admin list view #1075
oaipmh: update admin list view #1075
Conversation
d6f41bf
to
baec637
Compare
baec637
to
2543c8d
Compare
* display spec with <pre> tag * displays value with Formatter cmp * closes inveniosoftware/invenio-administration#94 * closes inveniosoftware/invenio-administration#105
2543c8d
to
b112c92
Compare
@@ -14,7 +14,7 @@ import { NotificationController } from "@js/invenio_administration/src/ui_messag | |||
const domContainer = document.getElementById("invenio-search-config"); | |||
|
|||
const sortColumns = (columns) => | |||
Object.entries(columns).sort((a, b) => a[1].order > b[1].order); | |||
Object.entries(columns).sort((a, b) => a[1].order - b[1].order); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why was this changed to -
? I think sort function expects a boolean to be returned as a result of comparator func
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because otherwise it doesn't work, we had the same issue in invenio-adminsitration
, we updated it there but forgot to change it here.
This is how it was looking before:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cross-checked with https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort, good to go
<pre>
tag invenio-administration#94