When sorting by Rotten Tomatoes rating, we're getting the results ordered alphabetically:
Bullet 70%, misconduct 7%, the wall 65%
^ In this case, misconduct should be the last in the list, but alphabetically (strings) "7%" is greater than "65%".
To solve this issue we need to:
when getting information from OMDB, we need to parse it to save it to the BD as integer (and not text). it can be an additional field in the table
we need to create a migration that does the same for any existing movie in the DB
we need to manually add the '%' to the front-end, when rendering the rotten tomatoes badge
When sorting by Rotten Tomatoes rating, we're getting the results ordered alphabetically: Bullet 70%, misconduct 7%, the wall 65% ^ In this case, misconduct should be the last in the list, but alphabetically (strings) "7%" is greater than "65%".
To solve this issue we need to: