diff --git a/src/plugin-hooks/useSortBy.js b/src/plugin-hooks/useSortBy.js index 5e43d4a0af..97b46eef23 100755 --- a/src/plugin-hooks/useSortBy.js +++ b/src/plugin-hooks/useSortBy.js @@ -268,7 +268,7 @@ function useMain(instance) { // Return the correct sortFn. // This function should always return in ascending order - return (a, b) => sortMethod(a, b, sort.id) + return (a, b) => sortMethod(a, b, sort.id, sort.desc) }), // Map the directions availableSortBy.map(sort => {