# `GSGlyph.sortName`

*Instance Property*

The key used instead of [`GSGlyph.name`](/Core/GlyphsCore/GSGlyph/name) for predefined glyph sorting.

## Declaration

```swift
var sortName: String? { get set }
```

```objc
@property (nonatomic, strong) NSString * sortName;
```

[See also `sortName` in the Python API](https://docu.glyphsapp.com/#GSGlyph.sortName)

```python
pyobjc_instanceMethods.sortName() -> str
pyobjc_instanceMethods.setSortName_(sortName: str)
```

## Discussion

This value is usually supplied by the Glyph Info Database. Set [`GSGlyph.storeSortName`](/Core/GlyphsCore/GSGlyph/storeSortName) to `YES` to persist a glyph-local override instead of deriving it from the glyph name.

## See Also

### Sorting

- [`GSGlyph.sortNameKeep`](/Core/GlyphsCore/GSGlyph/sortNameKeep) — The sorting key used when alternate glyphs are kept together.
- [`GSGlyph.storeSortName`](/Core/GlyphsCore/GSGlyph/storeSortName) — Whether [`GSGlyph.sortName`](/Core/GlyphsCore/GSGlyph/sortName) and [`GSGlyph.sortNameKeep`](/Core/GlyphsCore/GSGlyph/sortNameKeep) are stored as glyph-local glyph info.

