final List<NodeQueryProfile> nodeQueryProfiles = new ArrayList<>(profile.getNodeProfileList()); Collections.sort(nodeQueryProfiles, Comparators.endpoint);
output.writeObject(30, datasetProfile, com.dremio.exec.proto.SchemaUserBitShared.DatasetProfile.WRITE, true); for(com.dremio.exec.proto.UserBitShared.NodeQueryProfile nodeProfile : message.getNodeProfileList()) output.writeObject(31, nodeProfile, com.dremio.exec.proto.SchemaUserBitShared.NodeQueryProfile.WRITE, true);