Function rsort()

← Back to Module sorting



Module sorting → rsort()

Description

Sort an array in reverse order. Array elements will be arranged from highest to lowest

rsort(data)


Parameters


Return Value


Usage Example

import sorting
 
data = [23, 9, 10, 2, 5]
rsort(data)