Added proper sorting of time field

This commit is contained in:
PMKuipers 2024-03-04 23:05:01 +01:00
parent f20a724c52
commit 8938facdef
3 changed files with 6 additions and 2 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -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]));
}