From 99c1c2a6b1d483993b24d1a25cc3c12663589020 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Sat, 13 Mar 2010 23:12:40 -0800 Subject: Changes to the example client to test updating the members of an album. --- modules/gallery/helpers/item_rest.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules') 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); -- cgit v1.2.3