diff --git a/python/dune/perftool/blockstructured/spaces.py b/python/dune/perftool/blockstructured/spaces.py
index 57bd991172059c7873392c44dda440ded7aed8f3..9f04f3caffe0380bd0d7e0290885910b88aa8031 100644
--- a/python/dune/perftool/blockstructured/spaces.py
+++ b/python/dune/perftool/blockstructured/spaces.py
@@ -20,4 +20,4 @@ def lfs_inames(element, restriction, count=None, context=''):
     for i in range(world_dimension()):
         inames = inames + (name+dim_names[i],)
         domain(name+dim_names[i], element.degree() + 1)
-    return inames
+    return inames[-1::-1]
diff --git a/python/dune/perftool/blockstructured/tools.py b/python/dune/perftool/blockstructured/tools.py
index a0e4c3a308da214ff9bc05cfc87099b17d10390f..675af3483c14a9990d7c06284049fad6d184069d 100644
--- a/python/dune/perftool/blockstructured/tools.py
+++ b/python/dune/perftool/blockstructured/tools.py
@@ -25,7 +25,7 @@ def sub_element_inames():
     for i in range(dim):
         inames = inames + ("subel_"+dim_names[i],)
         domain("subel_"+dim_names[i], get_option("number_of_blocks"))
-    return inames
+    return inames[-1::-1]
 
 
 # define inames for boundary integration