Template:Sort Value/Documentation

Examples
Suppose you were to make a sortable table mapping characters to the Realm they inhabit. Given that Realms are visited sequentially, it is more logical for the "Realm" column to sort according to their in-game order, rather than alphabetical order. That is, the order should be Forest Realm, Snow Realm, Ocean Realm, Fire Realm.

If a subject belongs to multiple sequences, the  parameter should be used to specify which sequence to sort by. The template will default to whichever sequence comes first alphabetically.

If the specified sequence does not exist or the specified subject does not exist in the sequence, the subject is returned as-is without the sort value. Table rows will simply sort alphabetically.