Support category to sort tags

add cache
better consistency
etc..