This question shows research effort; it is useful and clear
0
This question does not show any research effort; it is unclear or not useful
Bookmark this question.
Show activity on this post.
単語の部分に基づいて並べ替えたい文字列の配列があります。たとえば、検索語として「comp」を指定すると、「compare」、「composition」、「computer」など、「comp」で始まる降順で配列がソートされます。 do not match は、そのままにするか、アルファベット順に並べ替えます (どちらか簡単な方)。