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

CommentFileSizeAuthor
#7 imce_extras.js_.patch747 bytesufku
#5 imce_file_order.png89.72 KBkakor
imce.jpeg18.46 KBeyecon-1

Comments

ufku’s picture

Category: bug » support

this is a theme issue.
You can style the filename cells using
#imce-content table.files td.name {
text-align: left !important;
}

eyecon-1’s picture

The sort order is a theme issue?

ufku’s picture

So it was the sort order ha.

Is the behavior always observed? For any directory list?
Tried logging out, clearing cookies, logging in?

eyecon-1’s picture

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.

kakor’s picture

StatusFileSize
new89.72 KB

I can confirm this behaviour, I have the same problem. Attaching a screen capture.

samtherobot’s picture

Same issue here.

ufku’s picture

Status: Active » Needs review
StatusFileSize
new747 bytes

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

nathanmcginty’s picture

exact same thing. i'll try the patch.

nathanmcginty’s picture

nope. patch applied fine. didn't do anything i could tell.

nathanmcginty’s picture

holy cr**.

it worked. sorry - had to flush the cache.

thanks!

ufku’s picture

Version: 6.x-1.2 » 6.x-1.x-dev
Category: support » bug
Status: Needs review » Fixed

committed. thank you all.

Status: Fixed » Closed (fixed)

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

Jorrit’s picture

Is a release containing this fix coming soon?