diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2010-03-13 23:12:40 -0800 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2010-03-13 23:12:40 -0800 |
commit | 99c1c2a6b1d483993b24d1a25cc3c12663589020 (patch) | |
tree | 2766ddaefdb91c61313e68dd1ad5e5d760640fbb | |
parent | 48b8b4f68923c05695dd30e328d048a6116d04e6 (diff) |
Changes to the example client to test updating the members of an album.
-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); |