gameshelf / gameshelf.github.io

NOT MAINTAINED ANYMORE
https://gameshelf.github.io/
28 stars 7 forks source link

When a game with no rank should appear at the top of a sorted list, it actually appears at the bottom #48

Open lmf674 opened 4 years ago

lmf674 commented 4 years ago

Compare the 2 screenshots below.

When Forbidden Island is the highest weight of 6 results, all games are sorted correctly in weight order: gs2

However, with Forbidden Island removed the next highest weight of 5 results should be King of Tokyo: Halloween, but the sort order is now incorrect - the weights are sorted as 1.67, 1.55, 1.50 ,1.70, 1.69: gs3

The same thing happens when sorting by other columns (e.g. Avg. Rating) and it seems to occur when the highest ordered result has a boardgame rank of "Not Ranked" (either a boardgame or a boardgameexpansion).