diff --git a/src/main/java/com/genersoft/iot/vmp/storager/dao/DeviceChannelMapper.java b/src/main/java/com/genersoft/iot/vmp/storager/dao/DeviceChannelMapper.java
index 5c871bdc..6d3b031b 100644
--- a/src/main/java/com/genersoft/iot/vmp/storager/dao/DeviceChannelMapper.java
+++ b/src/main/java/com/genersoft/iot/vmp/storager/dao/DeviceChannelMapper.java
@@ -63,6 +63,7 @@ public interface DeviceChannelMapper {
" WHERE 1=1 " +
" AND subCount >0" +
" AND subCount=0" +
+ " ORDER BY channelId ASC" +
" "})
List queryChannelsByDeviceId(String deviceId, String parentChannelId, String query, Boolean hasSubChannel, Boolean online);
@@ -96,6 +97,7 @@ public interface DeviceChannelMapper {
" AND subCount=0 " +
" AND platformId='${platformId}' " +
" AND (platformId != '${platformId}' OR platformId is NULL ) " +
+ " ORDER BY deviceId, channelId ASC" +
" "})
List queryChannelListInAll(String query, Boolean online, Boolean hasSubChannel, String platformId, Boolean inPlatform);