summaryrefslogtreecommitdiff
path: root/indoteknik_api/controllers/api_v1
diff options
context:
space:
mode:
Diffstat (limited to 'indoteknik_api/controllers/api_v1')
-rw-r--r--indoteknik_api/controllers/api_v1/category.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_api/controllers/api_v1/category.py b/indoteknik_api/controllers/api_v1/category.py
index 22b5cb44..efbf52f2 100644
--- a/indoteknik_api/controllers/api_v1/category.py
+++ b/indoteknik_api/controllers/api_v1/category.py
@@ -54,7 +54,7 @@ class Category(controller.Controller):
@controller.Controller.must_authorized()
def get_categories_homepage_count(self):
query = [('status', '=', 'tayang')]
- categories = request.env['website.categories.homepage'].search_read(query, ['id'])
+ categories = request.env['website.categories.homepage'].search_read(query, ['id'], order="sequence")
return self.response([x['id'] for x in categories])