cheeaun / repokemon

Showcase of GitHub repos with Pokémon names

Home Page:https://cheeaun.github.io/repokemon/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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);

Fixed in ebe61fd