daviddeutsch / yt-sanegrid

YouTube abandoned the subscription grid view. This has made a lot of people very angry and been widely regarded as a bad move.
http://daviddeutsch.github.io/yt-sanegrid/
GNU General Public License v3.0
37 stars 10 forks source link

New videos appearing at the bottom #17

Closed JaggedAppliance closed 11 years ago

JaggedAppliance commented 11 years ago

The rest of the grid is still sorted as it had been before but videos made public since about 6-8 hours ago are now appearing at the bottom left of the grid.

daviddeutsch commented 11 years ago

Yeah, noticed that as well, I'm blanking out here - no idea why ngRepeat doesn't do what I tell it to do...

daviddeutsch commented 11 years ago

Ah, I think the issue is that I'm trying to sort by 'published', yet that is a string, not a date... Off to check for custom functions.

warcode commented 11 years ago

Can you possibly just parse the strings with Date.parse?

kbillings commented 11 years ago

I believe I got it working with Date.parse on #19

daviddeutsch commented 11 years ago

Yeah, that really was the issue. I'm a bit concerned about legacy data, though, so I'm currently putting up a commit where it sorts the array before it is passed over. I will pull in your change, too, and remove my bandaid after a couple of days when everybody has had their data cycled through.

daviddeutsch commented 11 years ago

Yeah, sorry, Date is destroyed through localStorage, so it's not really an option. Maybe we'll find something in the future, for now - this works.