Page 4 of 5

Re: Gamebuino Games

PostPosted: Tue Aug 12, 2014 2:52 pm
by rodot
Yeah of course but as I said sorting is made using Isotope, so I don't have control over the sorted strings. I only tells it using which attribute I want the sorting to be done.

Re: Gamebuino Games

PostPosted: Tue Aug 12, 2014 5:05 pm
by Drakker
Add an attribute which is the all lowercase names?

Re: Gamebuino Games

PostPosted: Tue Aug 12, 2014 5:14 pm
by rodot
Well people are supposed to type their name in lower case (it's in the instructions) but nobody does. One day I'll make an actual database where you submit your game, rate people's games and all, not just a wiki page. But I don't have the time neither the skills for now. I'm already busy learning Java to make the tracker, we'll see later for mySQL and PHP :lol:

Re: Gamebuino Games

PostPosted: Tue Aug 12, 2014 6:59 pm
by Drakker
Well, a quick look at the code shows that it sorts by "date_updated" right now.
Code: Select all
  // sort by name
  $container.isotope({ sortBy: 'date_updated', sortAscending: false});


Technically you could patch it so that is does a toLowerCase() to whatever it is sorting, but the important part of the code has been made rather unreadable by a size reduction transformation. Since you use CSS to have the names display as uppercase, why don't you write a short javascript script that changes all those names to either lowercase or uppercase before isotope is called? That's a band aid type dirty fix, but that should work.

Re: Gamebuino Games

PostPosted: Tue Aug 12, 2014 7:14 pm
by rodot
Drakker wrote:That's a band aid type dirty fix, but that should work.

Good idea, I like it!

Re: Gamebuino Games

PostPosted: Wed Aug 13, 2014 9:56 am
by rodot
The games gallery no longer requires names to be lower case \o/
Thanks for the quick & dirty solution Drakker.

Re: Gamebuino Games

PostPosted: Wed Aug 13, 2014 10:27 am
by Drakker
It's so dirty it doesn't seem to work on minesweeper and snakeabcbuino....

Re: Gamebuino Games

PostPosted: Wed Aug 13, 2014 10:32 am
by rodot
Did you try pressing Ctrl+Shift+R to force refreshing of the browser cache?

Re: Gamebuino Games

PostPosted: Wed Aug 13, 2014 11:02 am
by Drakker
It works... now that is weird. If the JS was not up to date, it should have shown the same mess as earlier, not sort them all but two. Oh well, weird things happen.

Re: Gamebuino Games

PostPosted: Wed Aug 13, 2014 11:09 am
by rodot
That's because they were already all lower case but two ;)