fix whitespaces, update changelog)

This commit is contained in:
Milos Stojanovic
2020-10-28 09:26:25 +01:00
parent 0b79931711
commit 7d827c30e0
2 changed files with 4 additions and 4 deletions

View File

@@ -3,6 +3,7 @@
## Upcoming...
* New LDAP auth adapter (Thanks @ahaenggli)
* Fixes #17 (Thanks @ahaenggli)
## 7.4.5 - 2020-10-12

View File

@@ -538,17 +538,16 @@ export default {
customSort(a, b, order, param) {
if (a.type == 'back') return -1
if (b.type == 'back') return 1
if (a.type == 'dir' && b.type != 'dir') return -1
if (b.type == 'dir' && a.type != 'dir') return 1
if (b.type == a.type)
{
if (b.type == a.type) {
if (a[param] === b[param]) return this.customSort(a, b, false, 'name')
if (_.isString(a[param])) return (a[param].localeCompare(b[param])) * (order ? -1 : 1)
else return ((a[param] < b[param]) ? -1 : 1) * (order ? -1 : 1)
}
}
},
}
}