📅  最后修改于: 2022-03-11 15:02:49.627000             🧑  作者: Mango
return [...this.posts].sort((post1, post2) => String(post1[this.selectedSort])?.localeCompare(String(post2[this.selectedSort])));