Closed (fixed)
Project:
Filebrowser
Version:
6.x-2.x-dev
Component:
Directory Listing Pages
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Sep 2010 at 19:51 UTC
Updated:
3 Oct 2010 at 07:50 UTC
Jump to comment: Most recent file
Comments
Comment #1
Yoran commentedCan you tell me which version of PHP are you using ? Sort is done by "on the flight" sorter function creation. It's working perfectly (as you can see in attachements) on my test platform (GNU/Linux - PHP 5.3.2) but I have more and more doubts about this technique.
Comment #2
Yoran commentedComment #3
greywolfsspirit commentedYoran,
I too am seeing this behavior as well, even after the php update to 5.2.11.
Not too sure where the problem would be, unless it's something having to do with the string length, sorting things like 2, 2950, 5, 1500 in a way like this
1500
2
2950
5
sorting on the first digit only, regardless of the length of the values. Dates would be sorted by the first letter of the day (ex: Monday, Tuesday...)
Maybe this gives you a few ideas as to where it might be going a little screwy, but this seems to be the pattern I am seeing so far.
Comment #4
Yoran commentedWell, very stupid bug of mine. Corrected in next dev.
Comment #5
greywolfsspirit commentedout of curiosity, what was the bug? Just what I thought?
Comment #6
Yoran commentedA real stupid one. In the generated sort function, I ended up extracting the same field twice. Sometime I just hate PHP for not warning me about such simple thing. I activated all PHP notice but it seems not to work on function created at runtime, cool.
Comment #7
greywolfsspirit commentedahh.. okay..
Comment #8
asb commentedI don't want to hijack this issue, so just mentioning: Sorting doesn't work at all for me (latest dev release), neither when clicking on the "Display name" column header, nor throught the "Folder presentation" setting. Attaching screenshot for illustrative purposes.
Comment #9
Yoran commentedIf it doesn't work, it doesn't work, don't worry about hijacking anything. Else I'll be sorry about the time you spent testing this module and giving me feedbacks.
Is it possible for you ton insert, before line 231 bin filebrowser.theme.inc
And give me what you have in your browser on next F5 (don't forget to remove this line after).
Comment #10
asb commentedDoes this help you?
Comment #11
asb commentedDoes this help you?
Comment #12
Yoran commentedwonderfull, so the function is perfectly correct :/ And you you have no error in your traces (error.log) ? Is the problem the same with created (integer) column ?
Comment #13
Yoran commentedComment #14
Yoran commentedNew ticket here : http://drupal.org/node/910086