SORTKEY (Global: OTHER) - PCGen Documentation

# SORTKEY (Global: OTHER)

## Status

New 5.17.4

## Syntax

`SORTKEY:x`

## Parameters

- x: Text (Alpha Numeric)

## What it does

- This tag provides a generic text field by which LST objects can be sorted.
- SORTKEY can be modified with the MOD tag.

Note: When sorting lists of objects, PCGen will sort by SORTKEY , OUTPUTNAME then LST Name (e.g. “Enlarge Spell”, “Quicken Spell”, etc), in that order. Sorts order is 0-9, A-Z.

## Example

`Enlarge Spell<tab>SORTKEY:Metamagic~Enlarge Spell`

`Quicken Spell<tab>SORTKEY:11-MetaMagic~Quicken Spell`

`Early Feat<tab>SORTKEY:Z-Me last`

Would Display as

Quicken Spell

Enlarge Spell

Early Feat

Documentation built with Hugo using the Material theme.