Ver Fonte

fix ordering

Daniel Sheffield há 1 ano atrás
pai
commit
1d55b07a35
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      app/rest/pyapi.py

+ 1 - 0
app/rest/pyapi.py

@@ -76,6 +76,7 @@ GROUP BY ROLLUP (g.name, c.name, p.name)
 """),
         SQL("""
 HAVING {having}
+ORDER BY "Product", "Category", "Group"
 """).format(having=having) if having else SQL('')
     ])