Added missing PMF_ROOT_DIR
Sort tags
Fixed sorting of tags, finally
Fixed issue with broken URLs in pagnation, closes #773