Ordering posts by tag name alphabetically using Javascript Client

How would you write a post query if you would like posts to be ordered by the tag name?

{order: 'primary_tag.slug DESC'} does not seem to be working.

Is there an alternative way of achieving this?

Got the same issue. Seems like ‘primary_tag’ is a computed field and thus it cannot be used to order posts.