3 ms·
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 a
by gbraad 14y ago
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 on the sorted array itself, which would be a simple compare check.
It is jQuery specific since it uses $.each
- cjstewart88 14y agoI would never make an API that returns time ago and force my users to sort that way. This was made because: http://api.ihackernews.com/page?format=jsonp http://api.ihackernews.com/page?format=jsonp
- gbraad 14y agoHad never seen this unofficial API. Ugh, postedAgo?! Should be a timestamp... As he mentions, it should be avail. Ask ronneroller to change/add it ;-)