@wxn0brp/db-core
Preparing search index...
utils/id
sortByIds
Function sortByIds
sortByIds
<
T
extends
{
_id
:
string
}
>
(
objects
:
T
[]
)
:
T
[]
Sorts an array of objects by their _id property
Type Parameters
T
extends
{
_id
:
string
}
Parameters
objects
:
T
[]
Returns
T
[]
sortByIds
<
T
extends
Record
<
string
,
any
>
>
(
objects
:
T
[]
,
key
:
string
)
:
T
[]
Sorts an array of objects by their _id property
Type Parameters
T
extends
Record
<
string
,
any
>
Parameters
objects
:
T
[]
key
:
string
Returns
T
[]
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@wxn0brp/db-core
Loading...
Sorts an array of objects by their _id property