+
+
+
+
\ No newline at end of file
diff --git a/.idea/codeStyles/codeStyleConfig.xml b/.idea/codeStyles/codeStyleConfig.xml
new file mode 100644
index 0000000..79ee123
--- /dev/null
+++ b/.idea/codeStyles/codeStyleConfig.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml
new file mode 100644
index 0000000..d2ce72d
--- /dev/null
+++ b/.idea/jarRepositories.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ComposeTimeTable/src/main/java/com/cometj03/composetimetable/ScheduleData.kt b/ComposeTimeTable/src/main/java/com/cometj03/composetimetable/ScheduleData.kt
index 97b3133..52f1749 100644
--- a/ComposeTimeTable/src/main/java/com/cometj03/composetimetable/ScheduleData.kt
+++ b/ComposeTimeTable/src/main/java/com/cometj03/composetimetable/ScheduleData.kt
@@ -31,10 +31,10 @@ data class ScheduleDayData(
val scheduleEntities: List = emptyList(),
) {
val startTimeOfDay: LocalTime by lazy {
- scheduleEntities.first().startTime
+ scheduleEntities.sortedBy { it.startTime }.first().startTime
}
val endTimeOfDay: LocalTime by lazy {
- scheduleEntities.last().endTime
+ scheduleEntities.sortedBy { it.endTime }.last().endTime
}
}