padolsey-archive/jquery.fn

nitial cap and/or all caps (acronyms) seem to be throwing off alpha order

Closed this issue · 2 comments

nitial cap and/or all caps (acronyms) seem to be throwing off alpha order

Here is a fix.

return $.text([a]).toUpperCase() > $.text([b]).toUpperCase() ? inverse ? -1 : 1 : inverse ? 1 : -1;

return $.text([a]).toUpperCase() > $.text([b]).toUpperCase() ? inverse ? -1 : 1 : inverse ? 1 : -1;