Added proper sorting of time field
This commit is contained in:
parent
f20a724c52
commit
8938facdef
2
amd/build/report-viewer-components.min.js
vendored
2
amd/build/report-viewer-components.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -857,6 +857,10 @@ export default {
|
|||
}
|
||||
if (field == 'enrolled') {
|
||||
return ((df.enrolled)?1:0) - ((ef.enrolled)?1:0);
|
||||
} else if (field == "enrolled_time") {
|
||||
const dvalue = (df[field]?df[field]:0);
|
||||
const evalue = (df[field]?ef[field]:0);
|
||||
return dvalue - evalue;
|
||||
} else {
|
||||
return String(d[this.sorting.header]).localeCompare(String(e[this.sorting.header]));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user