Out of alphabetical order
eyecon - March 18, 2009 - 01:43
| Project: | IMCE |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Description
Works like a champ with both BUE and WYSIWYG but the files are out of order. Small sample in attached image.
| Attachment | Size |
|---|---|
| imce.jpeg | 18.46 KB |

#1
this is a theme issue.
You can style the filename cells using
#imce-content table.files td.name {
text-align: left !important;
}
#2
The sort order is a theme issue?
#3
So it was the sort order ha.
Is the behavior always observed? For any directory list?
Tried logging out, clearing cookies, logging in?
#4
It only occurs on the server. Local directories list perfectly. This never happened on the 5.x branch. I cleared the cache and the cookies - even trying a different browser (Opera v Firefox). The sort is all over the place.
#5
I can confirm this behaviour, I have the same problem. Attaching a screen capture.
#6
Same issue here.
#7
Can you please review the patch?
It changes line 151 of js/imce_extras.js
from
imce.sortStrAsc = function(a, b) {return a.charAt(0).toLowerCase() < b.charAt(0).toLowerCase() ? -1 : b < a;};to
imce.sortStrAsc = function(a, b) {return a.toLowerCase() < b.toLowerCase() ? -1 : 1;};#8
exact same thing. i'll try the patch.
#9
nope. patch applied fine. didn't do anything i could tell.
#10
holy cr**.
it worked. sorry - had to flush the cache.
thanks!
#11
committed. thank you all.
#12
Automatically closed -- issue fixed for 2 weeks with no activity.
#13
Is a release containing this fix coming soon?