Skip to content

Commit

Permalink
Merge pull request #258 from traPtitech/fix/sort-members
Browse files Browse the repository at this point in the history
ソート時にtoSorted()を使用
  • Loading branch information
ogu-kazemiya authored Dec 11, 2024
2 parents 355b7f4 + 371ccb6 commit dcfed88
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/Project/MemberList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ const props = defineProps<Props>()
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 {
Expand Down

0 comments on commit dcfed88

Please sign in to comment.