Project:IMCE
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

Works like a champ with both BUE and WYSIWYG but the files are out of order. Small sample in attached image.

AttachmentSize
imce.jpeg18.46 KB

Comments

#1

Category:bug report» support request

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.

AttachmentSize
imce_file_order.png 89.72 KB

#6

Same issue here.

#7

Status:active» needs review

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;};

AttachmentSize
imce_extras.js_.patch 747 bytes

#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

Version:6.x-1.2» 6.x-1.x-dev
Category:support request» bug report
Status:needs review» fixed

committed. thank you all.

#12

Status:fixed» closed (fixed)

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

#13

Is a release containing this fix coming soon?

nobody click here