Skip to content
Snippets Groups Projects
Commit 33cbd9c6 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

fixes #3888

Closes #3888

Merge request studip/studip!2744
parent c7a50f71
No related branches found
No related tags found
No related merge requests found
......@@ -241,7 +241,10 @@ export default {
const directionFactor = this.sort.direction === 'ASC' ? 1 : -1;
// Default sort function by string comparison of field
const collator = new Intl.Collator(String.locale, {numeric: true, sensitivity: 'base'});
const collator = new Intl.Collator(String.locale, {
numeric: sortby !== 'number',
sensitivity: 'base'
});
let sortFunction = function (a, b) {
return collator.compare(striptags(a[sortby]), striptags(b[sortby]));
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment