tags sort and removing from quote