Simplify view code by separating out sortCol and sortOrder and making a glyphicon helper