html_url,issue_url,id,node_id,user,created_at,updated_at,author_association,body,reactions,performed_via_github_app,issue
https://github.com/pydata/xarray/issues/2173#issuecomment-818809259,https://api.github.com/repos/pydata/xarray/issues/2173,818809259,MDEyOklzc3VlQ29tbWVudDgxODgwOTI1OQ==,14808389,2021-04-13T15:04:51Z,2021-04-13T15:04:51Z,MEMBER,let's continue this in #5148,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,325475880
https://github.com/pydata/xarray/issues/2173#issuecomment-618562519,https://api.github.com/repos/pydata/xarray/issues/2173,618562519,MDEyOklzc3VlQ29tbWVudDYxODU2MjUxOQ==,14808389,2020-04-23T18:12:53Z,2021-04-13T13:29:40Z,MEMBER,"This works:
```diff
diff --git a/xarray/core/utils.py b/xarray/core/utils.py
index 1126cf30..355fb552 100644
--- a/xarray/core/utils.py
+++ b/xarray/core/utils.py
@@ -453,7 +453,7 @@ class SortedKeysDict(MutableMapping[K, V]):
del self.mapping[key]
def __iter__(self) -> Iterator[K]:
- return iter(sorted(self.mapping))
+ return iter(sorted(self.mapping, key=str))
def __len__(self) -> int:
return len(self.mapping)
```
But maybe it is too naive?","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,325475880
https://github.com/pydata/xarray/issues/2173#issuecomment-618488466,https://api.github.com/repos/pydata/xarray/issues/2173,618488466,MDEyOklzc3VlQ29tbWVudDYxODQ4ODQ2Ng==,14808389,2020-04-23T16:06:32Z,2020-04-23T16:06:32Z,MEMBER,I can reproduce this on master so there's still more to do to fix this. Maybe we could try sorting using the `str` representation of the dimension names?,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,325475880
https://github.com/pydata/xarray/issues/2173#issuecomment-618469296,https://api.github.com/repos/pydata/xarray/issues/2173,618469296,MDEyOklzc3VlQ29tbWVudDYxODQ2OTI5Ng==,5635139,2020-04-23T15:35:36Z,2020-04-23T15:35:36Z,MEMBER,Closed by #2174,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,325475880
https://github.com/pydata/xarray/issues/2173#issuecomment-391168143,https://api.github.com/repos/pydata/xarray/issues/2173,391168143,MDEyOklzc3VlQ29tbWVudDM5MTE2ODE0Mw==,1217238,2018-05-22T23:02:40Z,2018-05-22T23:02:40Z,MEMBER,"This is a manifestation of the same issue as https://github.com/pydata/xarray/issues/2172: you are using integers as dimension names, which we don't support very well.
In this case, you end up with mixed integers/strings as dimension names, which means our internal use of `sorted()` in `repr(x)` fails.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,325475880