X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;ds=sidebyside;f=templates%2Fsorting.html.ep;h=6b30f7b8139488afcb77508c28cc5a6eea1e1544;hb=HEAD;hp=c3901d19460805ba40ce7889f636d9aff9d0fdb0;hpb=a6fb68b992a8064673f7fdc5f46d9b7386e7a937;p=MojoFacets.git diff --git a/templates/sorting.html.ep b/templates/sorting.html.ep index c3901d1..6b30f7b 100644 --- a/templates/sorting.html.ep +++ b/templates/sorting.html.ep @@ -1,4 +1,6 @@ + + sort: % if ( $sort eq 'c' ) { @@ -21,5 +23,11 @@ value: desceding % } -<%= $numeric ? 'numeric' : '' %> +% if ( $numeric && $sort =~ m/^[ad]$/ ) { +numeric +% } elsif ( $numeric ) { +numeric +% } + +