mesa_frames.AgentSet.sort#
- AgentSet.sort(by: str | Sequence[str], ascending: bool | Sequence[bool] = True, inplace: bool = True, **kwargs) Self[source]#
Sort agents by one or more columns.
- Parameters:
- Returns:
The sorted AgentSet (or a sorted copy when
inplace=False).- Return type:
Self