Return all the items joined with *a*. *a* is included in the list if *include_self* is True.
(self, a, *, include_self=True)
| 912 | yield sorted(group, key=self._ordering.__getitem__) |
| 913 | |
| 914 | def get_siblings(self, a, *, include_self=True): |
| 915 | """ |
| 916 | Return all the items joined with *a*. |
| 917 | |
| 918 | *a* is included in the list if *include_self* is True. |
| 919 | """ |
| 920 | siblings = self._mapping.get(a, [a]) |
| 921 | result = sorted(siblings, key=self._ordering.get) |
| 922 | if not include_self: |
| 923 | result.remove(a) |
| 924 | return result |
| 925 | |
| 926 | |
| 927 | class GrouperView: |