@neos-project/positional-array-sorter
Flexible array sorter that sorts an array according to a 'position' meta data.
Last updated a month ago by neos-project .
GNU GPLv3 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @neos-project/positional-array-sorter 
SYNC missed versions from official npm registry.

Flexible array sorter that sorts an array according to a "position" meta data.

The expected format for the subject is:

[
    [
        'key' => 'bar'
        'position' => '<position-string>',
    ],
    [
        'key' => 'baz'
        'position' => '<position-string>',
    ],
]

The <position-string> supports one of the following syntax:

start (<weight>)
end (<weight>)
before <key> (<weight>)
after <key> (<weight>)
<numerical-order>

where "weight" is the priority that defines which of two conflicting positions overrules the other, "key" is a string that references another key in the subject and "numerical-order" is an integer that defines the order independently from the other keys.

Current Tags

  • 5.3.4                                ...           latest (a month ago)

119 Versions

  • 5.3.4                                ...           a month ago
  • 5.2.7                                ...           a month ago
  • 5.3.3                                ...           a month ago
  • 5.3.2                                ...           a month ago
  • 5.2.6                                ...           a month ago
  • 5.1.11                                ...           a month ago
  • 5.0.11                                ...           a month ago
  • 4.0.12                                ...           a month ago
  • 5.3.1                                ...           3 months ago
  • 5.2.5                                ...           3 months ago
  • 5.1.10                                ...           3 months ago
  • 5.0.10                                ...           3 months ago
  • 4.0.11                                ...           3 months ago
  • 5.2.4                                ...           3 months ago
  • 5.1.9                                ...           3 months ago
  • 5.0.9                                ...           3 months ago
  • 4.0.10                                ...           3 months ago
  • 5.3.0                                ...           3 months ago
  • 4.0.9                                ...           5 months ago
  • 5.2.3                                ...           5 months ago
  • 5.1.8                                ...           5 months ago
  • 5.0.8                                ...           5 months ago
  • 4.0.8                                ...           5 months ago
  • 5.2.2                                ...           5 months ago
  • 5.1.7                                ...           5 months ago
  • 5.0.7                                ...           5 months ago
  • 4.0.7                                ...           5 months ago
  • 5.2.1                                ...           7 months ago
  • 5.2.0                                ...           7 months ago
  • 5.1.6                                ...           7 months ago
  • 5.1.5                                ...           8 months ago
  • 5.0.6                                ...           8 months ago
  • 4.0.6                                ...           8 months ago
  • 5.1.4                                ...           9 months ago
  • 5.0.5                                ...           9 months ago
  • 4.0.5                                ...           9 months ago
  • 5.1.3                                ...           9 months ago
  • 5.0.4                                ...           9 months ago
  • 4.0.4                                ...           9 months ago
  • 5.1.2                                ...           a year ago
  • 5.0.3                                ...           a year ago
  • 4.0.3                                ...           a year ago
  • 5.1.1                                ...           a year ago
  • 5.1.0                                ...           a year ago
  • 5.0.2                                ...           a year ago
  • 4.0.2                                ...           a year ago
  • 2.9.2                                ...           a year ago
  • 2.9.1                                ...           a year ago
  • 4.0.1                                ...           a year ago
  • 5.0.1                                ...           a year ago
  • 5.0.0                                ...           a year ago
  • 4.0.0                                ...           a year ago
  • 3.9.0                                ...           a year ago
  • 2.9.0                                ...           a year ago
  • 3.8.1                                ...           a year ago
  • 2.8.1                                ...           a year ago
  • 3.8.0                                ...           a year ago
  • 2.8.0                                ...           a year ago
  • 3.7.0                                ...           a year ago
  • 2.7.0                                ...           a year ago
  • 2.6.1                                ...           a year ago
  • 3.6.1                                ...           a year ago
  • 3.6.0                                ...           a year ago
  • 2.6.0                                ...           a year ago
  • 3.5.0                                ...           2 years ago
  • 2.5.0                                ...           2 years ago
  • 3.4.0                                ...           2 years ago
  • 2.4.0                                ...           2 years ago
  • 3.3.0                                ...           2 years ago
  • 2.3.0                                ...           2 years ago
  • 3.2.1                                ...           2 years ago
  • 2.2.1                                ...           2 years ago
  • 2.2.0                                ...           2 years ago
  • 3.1.0                                ...           2 years ago
  • 2.1.0                                ...           2 years ago
  • 2.0.3-beta                                ...           2 years ago
  • 3.0.2                                ...           2 years ago
  • 2.0.2                                ...           2 years ago
  • 3.0.1                                ...           2 years ago
  • 2.0.1                                ...           2 years ago
  • 3.0.0                                ...           2 years ago
  • 2.0.0                                ...           2 years ago
  • 1.4.1                                ...           2 years ago
  • 1.4.0                                ...           2 years ago
  • 1.3.4                                ...           2 years ago
  • 1.3.3                                ...           2 years ago
  • 1.3.2                                ...           2 years ago
  • 1.3.1                                ...           2 years ago
  • 1.3.0                                ...           2 years ago
  • 1.2.3                                ...           2 years ago
  • 1.2.2                                ...           2 years ago
  • 1.2.1                                ...           2 years ago
  • 1.2.0                                ...           2 years ago
  • 1.1.2                                ...           2 years ago
  • 0.0.1                                ...           2 years ago
  • 0.0.9-automaticRelease                                ...           2 years ago
  • 0.0.8-automaticRelease                                ...           2 years ago
  • 0.0.7-automaticRelease                                ...           2 years ago
  • 0.0.6-automaticRelease                                ...           2 years ago
  • 0.0.5-autoRelease                                ...           2 years ago
  • 0.0.2-automaticReleaseTest                                ...           2 years ago
  • 0.0.1-automaticReleaseTest                                ...           2 years ago
  • 1.1.1                                ...           2 years ago
  • 1.1.0                                ...           3 years ago
  • 1.0.14                                ...           3 years ago
  • 1.0.13                                ...           3 years ago
  • 1.0.12                                ...           3 years ago
  • 1.0.11                                ...           3 years ago
  • 1.0.10                                ...           3 years ago
  • 1.0.9                                ...           3 years ago
  • 1.0.8                                ...           3 years ago
  • 1.0.7                                ...           3 years ago
  • 1.0.5                                ...           3 years ago
  • 1.0.4                                ...           3 years ago
  • 1.0.3                                ...           3 years ago
  • 1.0.2                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
  • 1.0.0-beta8                                ...           3 years ago
  • 1.0.0-beta6                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 120
Last Day 0
Last Week 1
Last Month 149
Dependencies (0)
None

Copyright 2014 - 2016 © taobao.org |