Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
管理対象オブジェクトの配列があります。それぞれにタイトル(名前)があります。これらをアルファベット順ではなく、特定の文字列に最も近い文字列で並べ替えたい(検索クエリ)
どうすればいいですか?
ありがとう
「最も近い」一致関数を定義し、(検索クエリと比較して)これらのオブジェクトに近接値を割り当て、代わりにそれで並べ替えるのがおそらく最善です。