Skip to content

Commit

Permalink
Merge branch 'master' of github.com:material-table-core/core
Browse files Browse the repository at this point in the history
  • Loading branch information
Domino987 committed Jan 6, 2023
2 parents 44b19d9 + b97575b commit b3c6dd1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/utils/data-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -843,8 +843,9 @@ export default class DataManager {
}

// See if the next key needs to be considered
const checkNextKey = compareValue === 0 && collection.length !== 1;

const checkNextKey =
compareValue === 0 &&
collection.filter((col) => col.sortOrder !== undefined).length !== 1;
return checkNextKey
? sortData(a, b, columns, collection.slice(1))
: compareValue;
Expand Down

0 comments on commit b3c6dd1

Please sign in to comment.