Feature #52074

Flexible ArraySorter

Added by Bastian Waidelich about 8 years ago. Updated about 8 years ago.

Status:
Resolved
Priority:
Should have
Category:
Utility
Target version:
-
Start date:
2013-09-17
Due date:
% Done:

100%

Estimated time:
PHP Version:
Has patch:
No
Complexity:

Description

The ArrayImplementation of the TYPO3.TypoScript package contains a clever mechanism to sort arrays depending on a "position string".
This functionality should be moved to the TYPO3.Flow package to allow this kind of flexible sorting in other places.

Supported position strings are:

start (<weight>):

start
start 123

end (<weight>):

end
end 123

before <key> (<weight>):

before foo
before foo 123

after <key> (<weight>):

after foo
after foo 123

<numerical-order>:

123

This feature is especially useful for sorting configuration options with multiple sources.
Example:

SomeSetting:
  'key1':
    foo: 'bar'
    position: 'start'
  'key2':
    foo: 'baz'
    position: 'after key1'
  'key3':
    foo: 'quux'
    position: 'end'

#1

Updated by Gerrit Code Review about 8 years ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23868

#2

Updated by Gerrit Code Review about 8 years ago

Patch set 2 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23868

#3

Updated by Gerrit Code Review about 8 years ago

Patch set 3 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23868

#4

Updated by Gerrit Code Review about 8 years ago

Patch set 4 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23868

#5

Updated by Gerrit Code Review about 8 years ago

Patch set 5 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23868

#6

Updated by Gerrit Code Review about 8 years ago

Patch set 6 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23868

#7

Updated by Gerrit Code Review about 8 years ago

Patch set 7 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23868

#8

Updated by Gerrit Code Review about 8 years ago

Patch set 8 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23868

#9

Updated by Bastian Waidelich about 8 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF