Skip to content
Snippets Groups Projects
Commit 7c0fa457 authored by Peter Rotich's avatar Peter Rotich
Browse files

ORM: Chain sort routine

parent 2d4eb3e6
No related branches found
No related tags found
No related merge requests found
...@@ -1737,7 +1737,8 @@ implements ArrayAccess { ...@@ -1737,7 +1737,8 @@ implements ArrayAccess {
function sort($key=false, $reverse=false) { function sort($key=false, $reverse=false) {
// Fetch all records into the cache // Fetch all records into the cache
$this->asArray(); $this->asArray();
return parent::sort($key, $reverse); parent::sort($key, $reverse);
return $this;
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment