reverse()

Reverses the order of this collection in place.

On collections

Usage

  • reverse()

Related

  • reversed()

    Returns a copy of this collection with the values in reverse order.

  • sort(compare?)

    Sorts a collection in place.