Sort by stars
simnalamburt opened this issue · comments
Thank you for making amazing repository. Can you make a functionality to sort the repositories(pokemons) by their stars?
Yeap, that's in my plans 👍
should be easy if using polymer: dom-repeat's sort function... hmm (just 3-4 lines of codes)
How about those changes? As this this page seems too simple to require any library/framework (even the 5kb performant choo) I wrote those using only pure javascript.
@qgustavor thanks! Your code is a good reference for me 👍
I used this code to find pokemon that have no repo or low stars:
var namesAvailable = pokemon.filter(d => !d.repo || d.repo.stars < 2).map( d => d.name);
console.log(namesAvailable);