Do not display sort order by default

Only display the sort order when it is not the default. Small HTML
fixes to prevent having an empty DIV for no reason.