HomePhabricator

Introduce "phutil_partition()" and natural case sorting for "msortv(...)"

Description

Introduce "phutil_partition()" and natural case sorting for "msortv(...)"

Summary:
Ref T13546. Pull some small utility changes out of the deeper stack of "land/markers" changes.

"phutil_partition()" makes it easier to write code that loops over a list grouping elements, then acts on each group. This kind of code is not terribly common, but often feels awkward when implemented with raw primitives.

"msortv()" can support "natural" sorting, which sorts "feature1", "feature2", ..., "feature10" in a more human-readable order.

Test Plan: Ran unit tests, used new behaviors elsewhere in "arc markers" workflows.

Maniphest Tasks: T13546

Differential Revision: https://secure.phabricator.com/D21371

Details

Provenance
epriestleyAuthored on Jun 30 2020, 1:35 PM
Parents
rARC33484b43c9c8: Introduce "GridView", an updated version of "ConsoleTableView"
Branches
Unknown
Tags
Unknown
Tasks
T13546: Provide a link to the help page from redirects
ChangeId
None