Scratch for Java

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

sortBy()

Create Shareable URL

Select Sections