Tool to sort pgn files using several tags

Discussion of anything and everything relating to chess playing software and machines.

Moderators: hgm, Rebel, chrisw

JohnS
Posts: 215
Joined: Sun Feb 24, 2008 2:08 am

Tool to sort pgn files using several tags

Post by JohnS »

Is there a tool to sort a pgn file using more than one tag?

For example, sort the file using the order
Date (ascending/descending), White player (a/d), Black player (a/d), Event (a/d) etc or other combinations of this type? The number and order of the sort tags would be specified by the user.

Thanks.
Colin-G
Posts: 191
Joined: Mon Oct 31, 2016 6:30 pm
Location: England

Re: Tool to sort pgn files using several tags

Post by Colin-G »

JohnS wrote: Wed Dec 05, 2018 3:08 am Is there a tool to sort a pgn file using more than one tag?

For example, sort the file using the order
Date (ascending/descending), White player (a/d), Black player (a/d), Event (a/d) etc or other combinations of this type? The number and order of the sort tags would be specified by the user.

Thanks.
Import the pgn file into a new Scid database.
Use the Scid Sort Database tool.
Then export the result back to a new pgn file.

Image
JohnS
Posts: 215
Joined: Sun Feb 24, 2008 2:08 am

Re: Tool to sort pgn files using several tags

Post by JohnS »

Thanks Colin. That's just what I want.