曜日の名前で並べ替えたい。ルート配列の最初のインデックスと同様に、日曜日、月曜日、火曜日などがあります。曜日名で辞書の配列を並べ替えるswift3
[{
day = Monday;
timingValues = (
{
closeHour = 23;
closeMin = 55;
day = Monday;
id = 2;
openHour = 00;
openMin = 00;
}
);
},
{
day = Tuesday;
timingValues = (
{
closeHour = 00;
closeMin = 11;
day = Tuesday;
id = 4;
openHour = 12;
openMin = 10;
}
);
}, {
day = Sunday;
timingValues = (
{
closeHour = 23;
closeMin = 07;
day = Sunday;
id = 5;
openHour = 11;
openMin = 07;
}
);
}]
を確認してください。!返信いただきありがとうございます。 –