Closed (fixed)
Project:
Filebrowser
Version:
6.x-2.x-dev
Component:
Directory Listing Pages
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Sep 2010 at 15:14 UTC
Updated:
30 Sep 2012 at 23:01 UTC
Jump to comment: Most recent file
Comments
Comment #1
Yoran commentedokay so you made a new ticket :)
In the previous one I was asking if you have the same problem with integer fields (like dates)
.
Comment #2
asb commentedI have two columns, "Display name" and "size". With filebrowser-6.x-2.x-dev from 2010-Sep-19, sorting these columns now works fine after clicking on the table header. File (file) size is an integer value, I believe.
The default sorting, configured in "Folder presentation" -> "Default sorting" doesn't work for me; also, the settings for "Visible columns" seem to be ignored (I can't get something else displayed, like "description", or "created").
Comment #3
HippoOnDiet commentedHi Yoran,
I just want to confirm ASB's issue.
When I tried to set default_sort to display name or description - it does not do anything at all.
I can't see any arrow up or down besides the header.
However if you click on Display_Name header then it will sort it for you.
I tested on Modified date as well.
When I select Modified date as default - nothing is sorted as well, until you click on the header.
Thanks again.
Comment #4
giando58 commentedHi Yoran,
I confirm also: default_sort setting for Modified date doesn't work too, still it is possible to click on its header to sort tha table as well.
Thanks a lot
Comment #5
benlotter commentedI get the following errors when clicking on the sort filename. The filenames all start with numbers (the date). Can we make a checkbox to remove the sort capability (or limit by field)? I am using sorttable.js in another section of the site (http://fallsbc.org/Sermons). There I have full control over how each column is sorted... notice it even sort the Bible passage correctly as well as the file sizes, dates and other text fields.
•warning: usort() [function.usort]: Invalid comparison function in /home/MYDIR/public_html/addons/ministryfree/sites/MYSITE.com/modules/filebrowser/filebrowser.theme.inc on line 201.
•warning: usort() [function.usort]: Invalid comparison function in /home/MYDIR/public_html/addons/ministryfree/sites/MYSITE.com/modules/filebrowser/filebrowser.theme.inc on line 205.
Comment #6
Nicolas Georget commentedBenlotter,
Your errors come from an another issue: #841372: usort() Invalid comparison function
There's a patch available here: http://drupal.org/node/841372#comment-3396542
Comment #7
stefan vaduva commentedI had the same problem and I've solved it by adding this line
in filebrowser.theme.inc before
[edit] I must specify that this was just a quick hack to get the sort working. I haven't investigate why this is happening. [/edit]
Comment #8
ianchan commented#7 works for me. thanks!
Comment #9
andreak commented$table_sort['sql'] = str_replace('-', '_', $table_sort['sql']);
also worked for me and got rid of the error. Thanks! -Andrea
Comment #10
pierrelbzWork for me too
Thanks !
Comment #11
wogga commentedAny news about the problem that default sorting doesn't work? (Post #2, #3, #4)
Comment #12
claudiu.cristeaOptimized patch.
Comment #13
claudiu.cristeaComment #14
Yoran commentedDid you try the dev version our the last RC version (this ticket is marked 6.x-2.x-dev, that's why I ask). Normally this bug is gone by using php create_function instead of using static sorters.
Comment #15
Yoran commentedWell no news, I assume it's ok