mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-11 14:30:20 -05:00
[web] Remove negated conditions
This commit is contained in:
@@ -6,7 +6,7 @@ const NO_INDEX = 'NO_INDEX'
|
||||
const numberComparator = (a, b) => a - b
|
||||
const stringComparator = (a, b) => a.localeCompare(b, locale.value)
|
||||
const dateComparator = (a, b) =>
|
||||
new Date(a) - new Date(b) || (!a ? -1 : !b ? 1 : 0)
|
||||
new Date(a) - new Date(b) || (a ? (b ? 0 : 1) : -1)
|
||||
|
||||
const createComparators = (criteria) =>
|
||||
criteria.map(({ field, type, order = 1 }) => {
|
||||
|
||||
Reference in New Issue
Block a user