Background for Skyrim SE
Member of the DbSkseFunctions script
Form[]functionSortFormArray(Form[]akForms, intsortOption=1)NativeGlobal

Description

Documentation Comment

returns new form array that contains the forms of the passed in akForms array, but sorted.
Sort options are as follows. Note, to sort by editor Id reliably, po3 tweaks must be installed.
1 = by form name ascending,
2 = by form name descending,
3 = by form editor Id name ascending,
4 = by form editor Id name descending,
5 = by form Id ascending,
6 = by form Id descending


Parameters

  1. Form[]akForms

  2. intsortOption=1


Examples

Auto-Generated Example

Form[] myFormArray__akForms
int myInt__sortOption

Form[] returnedValue = DbSkseFunctions.SortFormArray(myFormArray__akForms, myInt__sortOption)
Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.