Sort tags in alphabetical order

Tags are now sorted in case-insensitive alphabetical order, both in the
CLI as well as in the web UI.

Part of #190