Make where_tags_equal insensitive to array ordering

Previously, you'd have to make sure your arrays of tags to search for were in
the same order as when they were saved.

Now they can be in any order and the comparison will still return them.