UNPKG
trifid-core
Version:
latest (5.3.2)
5.3.2
5.3.1
5.3.0
5.2.0
5.1.2
5.1.1
5.1.0
5.0.2
5.0.1
5.0.0
4.1.0
4.0.7
4.0.6
4.0.5
4.0.4
4.0.3
4.0.2
4.0.1
4.0.0
3.0.0
2.7.1
2.7.0
2.6.3
2.6.2
2.6.1
2.6.0
2.5.6
2.5.5
2.5.4
2.5.3
2.5.2
2.5.1
2.5.0
2.4.0
2.3.3
2.3.2
2.3.1
2.3.0
2.2.3
2.2.2
2.2.1
2.2.0
2.1.1
2.1.0
2.0.1
2.0.0
2.0.0-alpha.7
2.0.0-alpha.6
2.0.0-alpha.5
2.0.0-alpha.4
2.0.0-alpha.3
2.0.0-alpha.2
2.0.0-alpha.1
2.0.0-alpha.0
1.4.0
1.3.0
1.2.0
1.1.0
1.0.1
1.0.0
Trifid Core
github.com/zazuko/trifid
zazuko/trifid
trifid-core
/
lib
/
plugins
/
sort.js
12 lines
(10 loc)
•
205 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
/** * Sort plugins *
@param
{
*
} plugins Object.entries from each plugins *
@returns
*/
const
sort
= (
plugins
) => plugins.
sort
(
(
a, b
) =>
{
return
a[
1
].
order
- b[
1
].
order
})
export
default
sort