docs: amend code-style rule 3.4
refs #4203
Change-Id: Ic86e2326738723adf4b4132a535c4c747f3a3e74
diff --git a/docs/code-style.rst b/docs/code-style.rst
index a5a509a..5da9a60 100644
--- a/docs/code-style.rst
+++ b/docs/code-style.rst
@@ -784,21 +784,20 @@
#include "util/random.hpp"
-3.4. Include statements should be sorted and grouped. Sorted by their hierarchical position
-in the system with low level files included first. Leave an empty line between groups
-of include statements.
+3.4. Include statements should be grouped. Same-project headers should be included first.
+Leave an empty line between groups of include statements. Sorted alphabetically within a group.
.. code-block:: c++
+ #include "detail/pending-interest.hpp"
+ #include "util/random.hpp"
+
#include <fstream>
#include <iomanip>
#include <boost/lexical_cast.hpp>
#include <boost/regex.hpp>
- #include "detail/pending-interest.hpp"
- #include "util/random.hpp"
-
3.5. Types that are local to one file only can be declared inside that file.