Fix inconsistent sorting in FriendList across pagination (#1567)

* Add compareWithFriendNumber

* Use sort-change event to fix inconsistent sorting order in FriendList items

* Remove selfSelector

* Make `sortAlphabetically` consider cases where one of the values is missing
This commit is contained in:
Ryo Namiki
2026-01-11 02:08:15 +09:00
committed by GitHub
parent d53ce8982a
commit bcba7c01de
2 changed files with 89 additions and 27 deletions

View File

@@ -6,7 +6,8 @@
v-bind="mergedTableProps"
:stripe="false"
:default-sort="resolvedDefaultSort"
@row-click="handleRowClick">
@row-click="handleRowClick"
@sort-change="handleSortChange">
<slot></slot>
</el-table>
@@ -63,7 +64,7 @@
}
});
const emit = defineEmits(['row-click']);
const emit = defineEmits(['row-click', 'sort-change']);
const appearanceSettingsStore = useAppearanceSettingsStore();
const vrcxStore = useVrcxStore();
@@ -169,6 +170,10 @@
emit('row-click', row, column, event);
};
const handleSortChange = (data) => {
emit('sort-change', data);
};
const handleSizeChange = (size) => {
if (props.pageSizeLinked) {
appearanceSettingsStore.setTablePageSize(size);