Minor engine template fix.

It makes no sense to show "sorting links" if there are not many of a resource.

Fixes #2142