diff --git a/app/src/main/java/io/timelimit/android/data/dao/DeviceDao.kt b/app/src/main/java/io/timelimit/android/data/dao/DeviceDao.kt index 961f220..88d0551 100644 --- a/app/src/main/java/io/timelimit/android/data/dao/DeviceDao.kt +++ b/app/src/main/java/io/timelimit/android/data/dao/DeviceDao.kt @@ -1,5 +1,5 @@ /* - * TimeLimit Copyright 2019 - 2020 Jonas Lochmann + * TimeLimit Copyright 2019 - 2021 Jonas Lochmann * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -38,7 +38,7 @@ abstract class DeviceDao { @Query("SELECT * FROM device WHERE id = :deviceId") abstract fun getDeviceByIdSync(deviceId: String): Device? - @Query("SELECT * FROM device") + @Query("SELECT * FROM device ORDER BY id") abstract fun getAllDevicesLive(): LiveData> @Query("SELECT * FROM device")