mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-08 16:37:15 +00:00
Pull sort/compare utils from PrimeReact
This commit is contained in:
parent
c6cd944735
commit
4d6a272795
9 changed files with 55 additions and 32 deletions
|
@ -110,7 +110,7 @@ export default {
|
|||
sort() {
|
||||
if (this.value) {
|
||||
const value = [...this.value];
|
||||
const comparer = new Intl.Collator(undefined, { numeric: true }).compare;
|
||||
const comparer = ObjectUtils.localeComparator();
|
||||
|
||||
value.sort((data1, data2) => {
|
||||
let value1 = ObjectUtils.resolveFieldData(data1, this.sortField);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue