Options
All
  • Public
  • Public/Protected
  • All
Menu

Module components/pages/filesytem/sortFilesAndFolders

Index

Functions

  • sortObjectsInArrayByProperty(originalArray: any, propertyName: keyof FsEntity, sortIncreasing: boolean): any
  • It takes an array of objects, a property name, and a boolean, and returns a sorted array of objects

    Parameters

    • originalArray: any

      The array of objects to sort.

    • propertyName: keyof FsEntity

      The name of the property to sort by.

    • sortIncreasing: boolean

      true if you want to sort in ascending order, false if you want to sort in descending order

    Returns any

    An array of objects sorted by the propertyName

Generated using TypeDoc version 0.22.15, the 4/20/2022