03-21-2011, 05:21 PM
Hey,
Issue: I am trying to change the default behavior of the file sorting that takes place when you click on the "name" header of the folder content table. It sorts in ascending order by default.
I followed the code trail and traced the sorting back to :
I changed the getDocuments() function from:
to:Issue: I am trying to change the default behavior of the file sorting that takes place when you click on the "name" header of the folder content table. It sorts in ascending order by default.
I followed the code trail and traced the sorting back to :
Code:
Core/inc.ClassFolder.phpI changed the getDocuments() function from:
PHP Code:
<?php
if (!isset($this->_documents)) {
if ($orderby=="n") $queryStr = "SELECT * FROM tblDocuments WHERE folder = " . $this->_id . " ORDER BY name";
PHP Code:
<?php
if (!isset($this->_documents)) {
if ($orderby=="n") $queryStr = "SELECT * FROM tblDocuments WHERE folder = " . $this->_id . " ORDER BY name desc";

