diff options
-rw-r--r-- | modules/gallery/helpers/item_rest.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/gallery/helpers/item_rest.php b/modules/gallery/helpers/item_rest.php index 5d31291e..32b9c620 100644 --- a/modules/gallery/helpers/item_rest.php +++ b/modules/gallery/helpers/item_rest.php @@ -70,6 +70,8 @@ class item_rest_Core { $orm->where("type", "IN", explode(",", $p->type)); } + // Respect the requested ordering + $orm->order_by($item->sort_column, $item->sort_order); $members = array(); foreach ($orm->find_all() as $child) { $members[] = rest::url("item", $child); |