MINOR CHANGE: HistoricalChildren now ordered by ID

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@87763 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Geoff Munn 2009-09-30 21:21:30 +00:00
parent d8b987bae7
commit 1be70c9ffc

View File

@ -470,8 +470,9 @@ class Hierarchy extends DataObjectDecorator {
* from both stage & live. * from both stage & live.
*/ */
public function AllHistoricalChildren() { public function AllHistoricalChildren() {
return Versioned::get_including_deleted(ClassInfo::baseDataClass($this->owner->class), $baseClass=ClassInfo::baseDataClass($this->owner->class);
"\"ParentID\" = " . (int)$this->owner->ID); return Versioned::get_including_deleted($baseClass,
"\"ParentID\" = " . (int)$this->owner->ID, "\"$baseClass\".\"ID\" ASC");
} }
/** /**