diff --git a/CHANGELOG.md b/CHANGELOG.md
index e9c14229..eeaeb5b3 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,10 @@
## Unreleased
+## 3.16.2 - 2023-08-09
+
+* Report all layers having a primary key which is not in the layer's fields.
+
## 3.16.1 - 2023-08-09
* Fix the use of OpenTopoMap background
diff --git a/lizmap/plugin.py b/lizmap/plugin.py
index 53ff16ec..7dc26cce 100755
--- a/lizmap/plugin.py
+++ b/lizmap/plugin.py
@@ -2717,11 +2717,13 @@ def project_config_file(self, lwc_version: LwcVersions, with_gui: bool = True, c
"temporary field called '{}' to be a unique identifier. On QGIS Server, this will bring issues."
).format(field))
self.dlg.log_panel.append("
")
+ layers.sort()
for layer_name in layers:
self.dlg.log_panel.append('⚫ {}'.format(layer_name))
self.dlg.log_panel.append("
")
if int8:
+ int8.sort()
self.dlg.log_panel.append(tr(
"The primary key has been detected as a bigint (integer8) for your layer :"))
self.dlg.log_panel.append("
")