Skip to content

Commit

Permalink
folder list section sorting fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonmunro committed Nov 6, 2018
1 parent 52c5441 commit a6fa453
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/core/site.js
Original file line number Diff line number Diff line change
Expand Up @@ -927,7 +927,7 @@ var Hm_Folders = {
listitems = $('li', folder);
}
listitems.sort(function(a, b) {
if (last_name && $(b).attr('class') == last_name) {
if (last_name && ($(a).attr('class') == last_name || $(b).attr('class') == last_name)) {
return false;
}
if ($(b).text().toUpperCase() == 'ALL') {
Expand Down

0 comments on commit a6fa453

Please sign in to comment.