Sort devices by id

This commit is contained in:
Jonas Lochmann 2021-02-08 01:00:00 +01:00
parent 5ecef81c0e
commit 7e5d1bfd25
No known key found for this signature in database
GPG key ID: 8B8C9AEE10FA5B36

View file

@ -1,5 +1,5 @@
/*
* TimeLimit Copyright <C> 2019 - 2020 Jonas Lochmann
* TimeLimit Copyright <C> 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<List<Device>>
@Query("SELECT * FROM device")