mirror of
https://github.com/filegator/filegator.git
synced 2025-08-11 19:14:20 +02:00
fix whitespaces, update changelog)
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
## Upcoming...
|
## Upcoming...
|
||||||
|
|
||||||
* New LDAP auth adapter (Thanks @ahaenggli)
|
* New LDAP auth adapter (Thanks @ahaenggli)
|
||||||
|
* Fixes #17 (Thanks @ahaenggli)
|
||||||
|
|
||||||
## 7.4.5 - 2020-10-12
|
## 7.4.5 - 2020-10-12
|
||||||
|
|
||||||
|
@@ -538,17 +538,16 @@ export default {
|
|||||||
customSort(a, b, order, param) {
|
customSort(a, b, order, param) {
|
||||||
if (a.type == 'back') return -1
|
if (a.type == 'back') return -1
|
||||||
if (b.type == 'back') return 1
|
if (b.type == 'back') return 1
|
||||||
|
|
||||||
if (a.type == 'dir' && b.type != 'dir') return -1
|
if (a.type == 'dir' && b.type != 'dir') return -1
|
||||||
if (b.type == 'dir' && a.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 (a[param] === b[param]) return this.customSort(a, b, false, 'name')
|
||||||
|
|
||||||
if (_.isString(a[param])) return (a[param].localeCompare(b[param])) * (order ? -1 : 1)
|
if (_.isString(a[param])) return (a[param].localeCompare(b[param])) * (order ? -1 : 1)
|
||||||
else return ((a[param] < b[param]) ? -1 : 1) * (order ? -1 : 1)
|
else return ((a[param] < b[param]) ? -1 : 1) * (order ? -1 : 1)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user