static-dev / spike-datocms

Spike plugin for easily consuming datocms data
Other
15 stars 8 forks source link

Add sorting by position #7

Closed michaelcd closed 7 years ago

michaelcd commented 7 years ago

Sorts a model's records by position if a position key is available.

codecov[bot] commented 7 years ago

Codecov Report

Merging #7 into master will not change coverage. The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master     #7   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           1      1           
  Lines          70     73    +3     
=====================================
+ Hits           70     73    +3
Impacted Files Coverage Δ
lib/index.js 100% <100%> (ø) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update de712f7...e9ad284. Read the comment docs.

jescalan commented 7 years ago

The product model in the test fixtures is manually sorted and could be used to test this feature 😁