diff --git a/web/concrete/core/libraries/database_item_list.php b/web/concrete/core/libraries/database_item_list.php
index <HASH>..<HASH> 100644
--- a/web/concrete/core/libraries/database_item_list.php
+++ b/web/concrete/core/libraries/database_item_list.php
@@ -169,7 +169,7 @@ class Concrete5_Library_DatabaseItemList extends ItemList {
 		return parent::getSearchResultsClass($field);
 	}
 
-	public function sortBy($key, $dir) {
+	public function sortBy($key, $dir = 'asc') {
 		if ($key instanceof AttributeKey) {
 			$key = 'ak_' . $key->getAttributeKeyHandle();
 		}
adds a default value to sortBy() as defined in the base ItemList class


Former-commit-id: <I>f<I>f<I>cdeb<I>ce<I>b1de<I>ec<I>ef