SortingCards

The order parameter determines how Scryfall should sort the returned cards.

Entries

Link copied to clipboard

Sort cards by name, A → Z

Link copied to clipboard

Sort cards by their set and collector number: AAA/#1 → ZZZ/#999

Link copied to clipboard

Sort cards by their release date: Newest → Oldest

Link copied to clipboard

Sort cards by rarity (e.g., Common → Mythic)

Link copied to clipboard

Sort cards by color and color identity

Link copied to clipboard

Sort cards by their USD price

Link copied to clipboard

Sort cards by their Magic Online (tix) price

Link copied to clipboard

Sort cards by their EUR price

Link copied to clipboard

Sort cards by mana value (converted mana cost)

Link copied to clipboard

Sort cards by power

Link copied to clipboard

Sort cards by toughness

Link copied to clipboard

Sort by EDHREC ranking/popularity

Link copied to clipboard

Sort by Penny Dreadful deck usage and legality data

Link copied to clipboard

Sort cards by the artist credit

Link copied to clipboard

Sort by Scryfall review score

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int
Link copied to clipboard

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.