mirror of
https://github.com/filegator/filegator.git
synced 2025-08-09 11:36:31 +02:00
fix whitespaces, update changelog)
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
## Upcoming...
|
||||
|
||||
* New LDAP auth adapter (Thanks @ahaenggli)
|
||||
* Fixes #17 (Thanks @ahaenggli)
|
||||
|
||||
## 7.4.5 - 2020-10-12
|
||||
|
||||
|
@@ -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)
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user