I find it useful when one also can sort by the description.

Comments

Susurrus’s picture

Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Active

I have no idea what the sort key is. It's a mix of the file date and the upload date or something but surely not the description.

clauded’s picture

Using dev-build v 1.9.2.8.2.33 2008/08/24 17:15:04, I get the following error message when sorting by description :

* warning: usort(): Invalid comparison function in /srv/www/htdocs/drupal/sites/all/modules/filebrowser/filebrowser.module on line 594.
* warning: usort(): Invalid comparison function in /srv/www/htdocs/drupal/sites/all/modules/filebrowser/filebrowser.module on line 595.

Directory published contains only subdirs named 2002, 2003, 2004, 2005, 2006, 2007 and 2008. Descript.ion file contains only 2 entries :

2007 Year 2007
2008 Year 2008

clauded’s picture

There's a missing function in the module : function filebrowser_description_sort. This should be added at the end of the module :

function filebrowser_description_sort($a, $b) {
  return strcmp($a['desc'], $b['desc']);
}
Yoran’s picture

Status: Active » Fixed

Fix is commited. Thanks :)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.