Remove sorting of allowedHelp maps (#852)

Closes #845

It is idiomatic to treat the key order of a Dart map as meaningful
given that map literals and default Map type preserve key insertion
order. It is more useful to allow the caller to decide this order than
to mandate an alpha sorting by key. Callers which need this order can
construct the map appropriately, and callers which prefer a different
order now have the capability.

Remove the additional list copy and iterate the map keys directly.

Releasing as a non-breaking change since specific usage output is
considered an implementation detail. This is expected to impact some CI
statuf for packages with tests hardcoding a strict dependency on the
output.

No additional tests are necessary since updating the order in existing
tests demonstrates the same behavior as adding a non-sorting specific
test.

Refactor a few null check conditions to variable assignment patterns.
4 files changed
tree: 0b59554b5917dc17d363d222911e80453aa9e8a8
  1. .github/
  2. pkgs/
  3. CONTRIBUTING.md
  4. LICENSE
  5. README.md
README.md

Overview

This repository is home to various Dart packages under the dart.dev publisher.

Packages

PackageDescriptionIssuesVersion
argsLibrary for defining parsers for parsing raw command-line arguments into a set of options and values using GNU and POSIX style options.issuespub package
asyncUtility functions and classes related to the ‘dart:async’ library.issuespub package
charactersString replacement with operations that are Unicode/grapheme cluster aware.issuespub package
collectionCollections and utilities functions and classes related to collections.issuespub package
convertUtilities for converting between data representations. Provides a number of Sink, Codec, Decoder, and Encoder types.issuespub package
cryptoImplementations of SHA, MD5, and HMAC cryptographic functions.issuespub package
fixnumLibrary for 32- and 64-bit signed fixed-width integers with consistent behavior between native and JS runtimes.issuespub package
lintsOfficial Dart lint rules. Defines the ‘core’ and ‘recommended’ set of lints suggested by the Dart team.issuespub package
loggingProvides APIs for debugging and error logging, similar to loggers in other languages, such as the Closure JS Logger and java.util.logging.Logger.issuespub package
os_detectPlatform independent OS detection.issuespub package
pathA string-based path manipulation library.issuespub package
platformA pluggable, mockable platform information abstraction for Dart.issuespub package
typed_dataUtility functions and classes related to the dart:typed_data library.issuespub package

Publishing automation

For information about our publishing automation and release process, see https://github.com/dart-lang/ecosystem/wiki/Publishing-automation.

For additional information about contributing, see our contributing page.