Fix MismatchError in tags API tests

The tags lists are compared unsorted which causes a MismatchError
in some cases.
This commit sorts the tags lists before the assertion.

Story 2008026
Task 40680

Change-Id: I4cc8a663d7d7c853e6286379eea74c90819209cd
7 files changed