FancyIndex sort by My Rating

Any trouble you encounter with the Pedias, here's the place to ask for help.
Post Reply
User avatar
sitenoise
Addicted to Bruji
Addicted to Bruji
Posts: 230
Joined: Fri Mar 21, 2008 12:42 pm
Contact:

FancyIndex sort by My Rating

Post by sitenoise »

Here's a weird one:

If I add the key:country column to myFancyIndex, it breaks the ability to sort by the My Rating column. I've been confounded by this all night and that is my final conclusion.

I've added other columns (Original Title) and removed some (rated, rating, writer, studio). If I comment-out the Country column, the My Rating column sorts. If I un-comment it, the My Rating column sort function breaks.

what do you suppose is going on?
marumari
Addicted to Bruji
Addicted to Bruji
Posts: 104
Joined: Thu Dec 10, 2009 10:38 am
Contact:

Re: FancyIndex sort by My Rating

Post by marumari »

ual - do you have an export online that I could take a look at, where it is broken? Feel free to send me a PM if that's more comfortable for you.

Thanks!
marumari
Addicted to Bruji
Addicted to Bruji
Posts: 104
Joined: Thu Dec 10, 2009 10:38 am
Contact:

Re: FancyIndex sort by My Rating

Post by marumari »

Actually, the issue isn't that you added Country, it's that you know longer have the Movie Ratings (PG, PG-13, R, etc.) listed as the 7th column.

FancyIndex has a custom sorter for the movie ratings field, because they can't be sorted alphabetically: "U" (a UK rating) is a much lower rating than "R", and "NC-17" is definitely a lower rating, than, say, "PG", even though it comes first alphabetically. When you have something else in the 7th column (as your Star Ratings are), it's trying to sort them as Movie Ratings, and failing miserably.

So, if you open up the file called fi.js (in the Images directory), you'll see this line:

Code: Select all

headers: {0: {sorter:'titles'}, 6: {sorter:'movieratings'}},
Simply change it to this:

Code: Select all

headers: {0: {sorter:'titles'}},
And that should fix your issues. Let me know if it doesn't. Thanks!
User avatar
sitenoise
Addicted to Bruji
Addicted to Bruji
Posts: 230
Joined: Fri Mar 21, 2008 12:42 pm
Contact:

Re: FancyIndex sort by My Rating

Post by sitenoise »

That did it, thanks!
Post Reply