type Item = {
member: string;
};
let items as Item[];
items.sort((a, b) => (a.member > b.member ? 1 : -1))
文字列でもソートできた
Go to list of users who liked
More than 1 year has passed since last update.
type Item = {
member: string;
};
let items as Item[];
items.sort((a, b) => (a.member > b.member ? 1 : -1))
文字列でもソートできた
Register as a new user and use Qiita more conveniently
Go to list of users who liked