Skip to content

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Nov 11, 2023

Description

Recreation of upstream PR squizlabs/PHP_CodeSniffer#3868:

Use natural sorting for the list of included sniffs

The SORT_NATURAL and the SORT_FLAG_CASE flag are available since PHP 5.4, so can be used without issue.

Suggested changelog entry

The -e (explain) command will now list sniffs in natural order.

... for the list of included sniffs.

The `SORT_NATURAL` and the `SORT_FLAG_CASE` flag are available since PHP 5.4, so can be used without issue.
@jrfnl jrfnl force-pushed the feature/ruleset-explain-use-natural-sort branch from d1f49be to 631f16a Compare December 4, 2023 14:32
@jrfnl jrfnl merged commit 11d5c66 into master Dec 4, 2023
@jrfnl jrfnl deleted the feature/ruleset-explain-use-natural-sort branch December 4, 2023 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant