Enrolled devices should be shown with latest first #544

Open
sathira wants to merge 1 commits from sathira/device-mgt-core:DeviceFilter_Time into master

@ -181,6 +181,8 @@ public class GenericDeviceDAOImpl extends AbstractDeviceDAOImpl {
sql += " GROUP BY e.ID "; sql += " GROUP BY e.ID ";
} }
sql += ") "; sql += ") ";
sql += " ORDER BY d1.LAST_UPDATED_TIMESTAMP DESC "; // <-- New order clause
sql += " LIMIT ? OFFSET ?"; sql += " LIMIT ? OFFSET ?";
try (PreparedStatement stmt = conn.prepareStatement(sql)) { try (PreparedStatement stmt = conn.prepareStatement(sql)) {

Loading…
Cancel
Save