Swift ソートの覚書「英字の小文字と英字の大文字」
単純な比較でソートすると、英字の小文字が、英字の大文字が終わった後に並ぶ。
Aa
Z
ab
下記のようにしたい。
Aa
ab
Z
コード
$0.localizedCaseInsensitiveCompare($1) == .orderedAscending
知識は力なり、知識は宝なり。

コード import SwiftUI struct ContentView: V ...

Refill Calendar ν Home Page: Refill Cale ...

UIColor→JSON 以前の記事 UIColor情報をJSONで保存したい為 ...

リスト内をランダムで並べ替える Swift Algorithmが便利。 Swif ...

import SwiftUI struct ContentView: View ...