sortByTimeAgo.js
Languages and libraries
javascript library
SHOW HN2012
10points
9comments
#1,337of 1,677 in 2012
Top 80%of 2012 by points
How HN took it
QuietFewer than 5 comments about the project
0 positive, 0 neutral or asking, 0 mixed, 3 critical, out of 3 comments about the project.
Design: 0 for, 3 against
The thread, comment by comment
Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.
positive neutral or mixed critical about another commenter or something else the maker
What HN said
Objections
Sorting by English relative strings is the wrong approach; sort on timestamps instead.
From 2 comments
Seems to be a wrong approach to me. Instead of using a timestamp it is sorted against 'English' indexof-ed strings. I would expect human-readable date formats are done afterwords…
gbraad on HNHad never seen this unofficial API. Ugh, postedAgo?! Should be a timestamp... As he mentions, it should be avail. Ask ronneroller to change/add it ;-)
gbraad on HN
Should not depend on jQuery; it is a plain function usable in node or elsewhere.
From 1 comment
Thanks for sharing this. But why is it a jQuery plugin? It's a single function that iterates over an array, just as suited for a library or node.js module as a webpage; a…
dangrossman on HN
Requests
Remove the jQuery dependency.
From 1 comment
Thanks for sharing this. But why is it a jQuery plugin? It's a single function that iterates over an array, just as suited for a library or node.js module as a webpage; a…
dangrossman on HN
Ask the API maintainer to add a real timestamp field.
From 1 comment
Had never seen this unofficial API. Ugh, postedAgo?! Should be a timestamp... As he mentions, it should be avail. Ask ronneroller to change/add it ;-)
gbraad on HN
Questions
Which third-party APIs return time-ago text without standard date attributes?
From 1 comment
Out of curiosity, what third-party APIs are you using that return "time ago" attributes but no standard date attribute (e.g, ISO 8601, RFC 822)? I hope never to have that…
ibejoeb on HN