//对JSON数据按照英文字母升序排序
JSONObject jsonObject = JSONObject.parseObject(data);
Map<String, Object> map = jsonObject.getInnerMap();
Map<String, Object> sortedMap = new TreeMap<>(map);
JSONObject sortedJsonObject = new JSONObject(sortedMap);
logger.info("排序后报文: [" + sortedJsonObject.toString() + "]");