Stage::sortBy()
Draws and runs the sprites of each layer in the order a comparator gives, back to front.
Syntax
Java
.sortBy(comparator)
Parameters
| Name | Data Type | Description |
|---|---|---|
| comparator | Comparator<Sprite> | the order |
Return
void
Draws and runs the sprites of each layer in the order a comparator gives, back to front.
.sortBy(comparator)
| Name | Data Type | Description |
|---|---|---|
| comparator | Comparator<Sprite> | the order |
void