Fix #158 feature request (remove empty search params from sort_link)

Shorter sort_link params hash and URL by removing empty search params. 

Fixes issues #158, building on the discussion in PR #207.  

Submitted as a pull request to see if there is interest.