SortColumns
Specifies whether table columns should be sorted alphabetically by name or reported in the order provided by Salesforce.
Data Type
bool
Default Value
false
Remarks
By default, the provider reports columns in the same order they are returned by Salesforce. If pseudo-columns such as metadata columns added by the provider are enabled, these columns are added to the end of the column list.
When SortColumns is set to true, the provider reports all columns in alphabetical order, including pseudo-columns. This can make it easier to navigate column lists in user interfaces or development tools that display metadata.
Sorting columns has no impact on query performance, but changes the presentation of metadata. While alphabetical ordering can improve discoverability of columns, it may make it harder to recognize the logical grouping or order Salesforce originally intended. This property is most useful in scenarios where developers or users rely on predictable, alphabetically sorted column lists for development or reporting convenience.