Skip to content

rails-assets/angular-semver-sort

Repository files navigation

angular-semver-sort Build Status

Angular.js filter for ordering collections by semantic version number.

Installation

bower install angular-semver-sort

If you’re building a Rails app, you can easily use it with Rails Assets—this package is available as rails-assets-angular-semver-sort.

Usage

semverSort()

<ol ng-repeat="version in gem.versions | semverSort">
  <li ng-bind="version">
</ol>

semverSort(property)

<ol ng-repeat="gem in gems | semverSort:'version'">
  <li ng-bind="gem.version">
</ol>

Development

Clone the repository, then:

npm install

grunt
grunt test

Credits

The filter is includes the browser build of node-semver, the BSD-licensed semver parser created by Isaac Z. Schlueter.

Made for Rails Assets.

About

Order collections by semantic version number

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •