Menu

#217 Odd sort bug in game list in Scid 5.0.2 on Windows

v.5.0
closed
nobody
sort bug (1)
5
2024-01-30
2023-12-27
No

In Scid 5.0.2 on Windows, the option to sort by date in the game list window does not seem to work correctly.

I have noticed this when I installed 5.0.2 on a laptop I am preparing for my chess club, and opened a copy of my personal games database with it (created with Scid 4.7.0 on my desktop PC).

The last game (by date, sorted from old to new, played on 2023-12-10) does not display on the bottom of the game list as expected, while in Scid 4.7.0, it does. The DB has 406 games, and the internal number of this game is 181 (I don't know why, it's the last game I entered).

On the other hand, when I sort by date from new to old, this games displays correctly on top of the list, as it should, and as it also does with 4.7.0.

This odd sort behaviour seems to be unrelated to which language I configure, and also unrelated to the number format I use. At first I thought that this last game was missing completely, but after some fiddling I found that it is just somewhere in between, where it should not be according to the sort criteria.

What's even more odd is that this behaviour does NOT occur in the 5.0.2 Linux version. Only the Windows version seems to be affected!

I attach a zipped archive of the database for investigation. The game in question is "Schützenberger - Schneider", played on Dec 10, 2023.

1 Attachments

Discussion

  • Uwe

    Uwe - 2023-12-29

    Hi Peter,

    I can confirm the behavior. However, I suspect a display problem and not a faulty list: If the gamelist window has a certain size, then the last line is no longer displayed (although it is contained in the window/list). The last line/game is also not shown when the scrollbar is pressed or the arrow key is used to scroll.
    To make sure that it is a display problem, please try the following: slightly enlarge the gamelist window after sorting and see if the line (game) is then displayed again.

     
  • Peter Schneider

    Peter Schneider - 2023-12-31

    Hi Uwe,

    thanks for the hint - in fact, after fiddling with the window sizes and saving the new (=changed) layout, the problem is gone. All games are now displayed. Very confusing - but good to know there is nothing wrong with the database code or the DB consistency.

    So I think this issue can be closed - but maybe there is way to prevent this slightly irritating behaviour by a code change?! I.e. to make sure the list output isn't truncated in this way?

    Thanks and a happy new year to all Scid developers, and many thanks for providing such a great piece of software. I really love it!

     
  • Fulvio

    Fulvio - 2024-01-30
    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB