Sort files in the collection by a scalar.
A callback function to assign a numeric value to each file for sorting.
A callback function to assign a string value to each file for sorting.
Return a new collection sorted by a scalar. The scalar value is defined by a callback function. The sort is stable, that is, the original order of equal elements is preserved.
This method does the same thing as .sort()
except
.sortBy()
is simpler, faster.
Sort files in the collection by name.
Sort files by body size.
Comparing Integers with Floats should succeed.