Fix tags sort in assert