Reviewing merge request #9: Use numerical sort for Seasons

if you have a show with more than 10 seasons, listing the seasons shows something like:

Season 1
Season 10
Season 2
Season 3
...

This happens because seasons are stored as strings, so when comparing in the sort function, "10" is smaller than "2".

The current request changes the sorting function, so in the comparison it takes the seasons as integers. Thus, it shows the seasons correctly

Season 1
Season 2
....
Season 9
Season 10

Commits that would be merged:

Version 1
  • Version 1
  • 28323e2
  • b02e76b
  • Sort seasons by numerical comparison

Showing 28323e2-b02e76b

Comments

→ State changed from Open to Closed

Pushed as b02e76ba1e0dd876742a4d2ac28044eb77c87f52.

Add a new comment:

Login or create an account to post a comment

How to apply this merge request to your repository