Fix tag sorting