AlphabeticalRule constructor

const AlphabeticalRule()

A property source ordering rule that sorts sources alphabetically by name.

This rule can be applied to a list of PropertySource instances to produce a predictable, lexicographical ordering based on each source's name.

Example

final rule = AlphabeticalRule();
final reordered = rule.apply(sourcesList);

In this example, all property sources in sourcesList will be reordered alphabetically by their names, regardless of their original positions.

Implementation

const AlphabeticalRule();