You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The combined sort options aren't that semantically meaningful. Furthermore, it doesn't make that much sense to use some of them together (custom sortBy function with the others)
To do:
add @deprecated to the reverse,sortBy, and sortOrder options
adapt Readme examples
adapt tests
implement sort with type signature:
/** @param {String|Function} sort */
where sort:'key' or sort:'key:order' or sort: Function, where order is one of'asc'|'desc' (which map to reverse: false|true)
The text was updated successfully, but these errors were encountered:
webketje
changed the title
Proposal: Deprecate "reverse: true/ false" in favor of "sortOrder: asc/desc"
Proposal: more declarative/condensed sort options
Feb 6, 2022
The combined sort options aren't that semantically meaningful. Furthermore, it doesn't make that much sense to use some of them together (custom
sortBy
function with the others)To do:
@deprecated
to thereverse
,sortBy
, andsortOrder
optionssort
with type signature:/** @param {String|Function} sort */
sort:'key'
orsort:'key:order'
orsort: Function
, whereorder
is one of'asc'|'desc'
(which map toreverse: false|true
)The text was updated successfully, but these errors were encountered: