Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

Functions

sort

  • Can be used to sort arrays containing objects by a property of said objects Can also be used to sort plain objects, containing other objects in the same way

    Type parameters

    • V

    • K

    Parameters

    • list: ReadList<V, K>

      the list to sort

    • Optional by: ListPath | null

      The property of the child objects to sort by

    • Optional desc: boolean

      If set to true the result will be sorted descending instead of the default which is ascending

    Returns List<V, K>

Generated using TypeDoc