Added sort by tag

fixes #5