Category "data-class"

What is the purpose of sort_index of a Dataclass in Python?

I am learning about Dataclasses but I am confused on the purpose of sort_index and how it actually works. I can't seem to find any valuable information on it. T

How to modify the parameter pass to kotlin data class?

Say I have a data class data class MyClass(val crop: Rect, val name: String) But I want to make a copy of the Rect passed in since I don't want the value to be