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?
FancyIndex sort by My Rating
Re: FancyIndex sort by My Rating
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!
Thanks!
Re: FancyIndex sort by My Rating
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:
Simply change it to this:
And that should fix your issues. Let me know if it doesn't. Thanks!
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'}},
Code: Select all
headers: {0: {sorter:'titles'}},
Re: FancyIndex sort by My Rating
That did it, thanks!