Workshop.codes
Create

Array Sorted Descending Last updated April 02, 2024

Description

Returns a copy of a specified array with all numeric elements sorted from largest to smallest. Non-numeric elements are appended to the end of the result in their original order. The original array is not modified. Useful for displaying leaderboards in conventional top-down order or prioritizing highest-value targets.

Snippet

Array Sorted Descending(Global.ScoreArray);

Properties

Returns: Array
Parameters: Array

Array
Type: Array, Default: Empty Array
The array to sort in descending order.

Workshop.codes