HunteRoi/animeslist

The score prop is a string, which leads to bad sorting

HunteRoi opened this issue · 0 comments

Score being a string type, it would be interesting to use the index of the score value in the Score enumeration in order to properly sort the list.

const sorted = useMemo(() => sortBy(animes, anime => anime.score), [animes]);