# Bug report ### Bug description: ```python itertools.groupby(dynamic_properties, lambda d: d.table_id) ``` When data is not sorted base on key, group by does not work correctly and it needs to be sorted... Isn't it a bug? ### CPython versions tested on: 3.13 ### Operating systems tested on: Windows