sort-by-set-colors ( seq -- seq' )


Vocabulary
scryfall

Inputs
seqan object


Outputs
seq'an object


Definition


: sort-by-set-colors ( seq -- seq' )
{
{ [ "released_at" of ymd>timestamp ] <=> }
{ [ "set" of ] <=> }
{ [ "color_identity" of length ] <=> }
{ [ "color_identity" of sort ?first "A" or ] <=> }
{ [ "cmc" of ] <=> }
{ [ "mana_cost" of length ] <=> }
{ [ "creature" any-type? -1 1 ? ] <=> }
{ [ "power" of -1 1 ? ] <=> }
{ [ "toughness" of -1 1 ? ] <=> }
{ [ "name" of ] <=> }
} sort-with-spec ;