Skip to content

Commit

Permalink
[minor] Quick fix for sorting of classes in ClassFilterView
Browse files Browse the repository at this point in the history
  • Loading branch information
emilisto committed Apr 16, 2012
1 parent 80ce669 commit e9740b6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions public/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,10 @@ this.ClassFilterView = Backbone.View.extend({
var html = '<li class="nav-header">' + this.label + '</li>';

var classes = this.collection.getValues(this.attr);

// FIXME: quick and dirty sorting
classes.reverse();

_.each(classes, function(className) {
html += '<li><a href="#" rel="' + className + '">' + className + '</a></li>\n';
});
Expand Down

0 comments on commit e9740b6

Please sign in to comment.