added sorting by tags