iankronquist / y-cloninator

List GitHub projects trending on Hacker News without distractions.
http://ycloninator.herokuapp.com/
MIT License
127 stars 13 forks source link

Sort on repository attributes, date first and last mentioned on HN #6

Open mshenfield opened 8 years ago

mshenfield commented 8 years ago

From the comment on HN: it would be nice to be able to sort on

tschuy commented 8 years ago

Now that #9 has been merged this is a lot more possible. @mshenfield @iankronquist either of you want to take a stab at this? If neither of you will I'll probably work on it this coming weekend, but I don't really have time this week.

iankronquist commented 8 years ago

I've taken a look at this. There are lots of options, but none of them quite fit. I would like to pull in a dependency which does this which is:

  1. Available on NPM
  2. Does not pull in a giant framework we don't otherwise use

Here are bunch of solutions which don't meet those criteria:

  1. A Jquery plugin but I don't want to bring in all of jquery for some simple functionality
  2. An angular plugin see above
  3. A custom element which slurps csv data, not json
  4. A random file from the interwebs
  5. An plugin for some framework I've never heard of
  6. There are redundant implementations for this simple feature for every framework out there.

Good grief! This isn't that hard. Maybe we should write our own.

mshenfield commented 8 years ago

Found two I think fit the criteria: List.js a popular general purpose library for sorting HTML tables/lists, and tablesort less popular but more specific to tables. Both vanilla Javascript.