From 371ccb67071ba83c1486b09420d992b2b37e9edb Mon Sep 17 00:00:00 2001 From: ogu-kazemiya <135459827+ogu-kazemiya@users.noreply.github.com> Date: Tue, 10 Dec 2024 09:30:44 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=BD=E3=83=BC=E3=83=88=E6=99=82=E3=81=ABto?= =?UTF-8?q?Sorted()=E3=82=92=E4=BD=BF=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Project/MemberList.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/Project/MemberList.vue b/src/components/Project/MemberList.vue index 859d722..9e49dbf 100644 --- a/src/components/Project/MemberList.vue +++ b/src/components/Project/MemberList.vue @@ -12,8 +12,7 @@ const props = defineProps() const sortedMembers = computed(() => { if (!props.members) return [] - const li = props.members - li.sort((a, b) => { + const li = props.members.toSorted((a, b) => { if (a.duration.since.year !== b.duration.since.year) { return a.duration.since.year - b.duration.since.year } else {