m. c. de marco: To invent new life and new civilizations...

BGG Sorters

I made a few BoardGameGeek sorters recently, after someone there complained about the sort order on my Games You Can Play With Stacking Counters geeklist. Due to the lack of geeklist sorting at BoardGameGeek, a user can only view a geeklist in the order chosen by the creator of the list. The order I chose was by rating; the order the user requested was by date added, and I also wanted to be able to list the games in alphabetical order; the list was also unexpectedly getting long enough that I might accidentally re-add an item that I’d added before, so I wanted a quick way to check.

I’d wrestled with the BGG XML API before when getting my card creation program CardPen to make cards for the games in a BGG user’s collection. This time I ended up running my own CORS proxy to BGG, and eventually expanded from the geeklist sorter to a family sorter, a collection sorter, and a general thing sorter.

The geeklist, family, and collection sorters take the corresponding ID from BGG and give you a sortable list of the stuff on that geeklist/family/collection, but sort options are restricted to the information that comes back to from the BGG API (many for collections, few for the others). From there you have the option to pass your results to the thing sorter, which can sort by rank, ratings, and many other factors.

I should note that collection sorting is something many people already do with the API, so you may prefer a tool like GameShelf over my little XSL hack.