Closed
Description
We should add sorting to the node list command, the only question is if it should be on by default, or an option, or a configuration option.
I am tempted to make it on by default, but this would lose the "natural order" of the properties - would anybody care about that?
From:
PHPCRSH > ls
/cmf/sulu_io/contents/ceci-est-une-test [nt:unstructured] > nt:base
+----------------------------+--------------+------------------------------------------------+
| i18n:en-workflowStage | LONG (1) | 1 |
| jcr:uuid | STRING (36) | 70ea97fa-a60f-47b7-b291-1b6ec1a7b9d4 |
| i18n:denullfields | STRING (9) | [0] published |
| cnorm:email.0 | STRING (20) | daniel@dantleech.com |
| i18n:de-created | DATE (29) | 2015-02-26T18:08:14+01:00 |
| i18n:de-changer | LONG (1) | 1 |
| i18n:de-navigationContexts | STRING (0) | |
| phpcr:classparents | STRING (42) | [0] DTL\Bundle\ContentBundle\Document\Document |
| i18n:en-title | STRING (14) | This is a test |
| i18n:en-creator | LONG (1) | 1 |
| i18n:en-changer | LONG (1) | 1 |
| i18n:en-navigationContexts | STRING (0) | |
| i18n:en-structureType | STRING (7) | contact |
| i18n:en-changed | DATE (29) | 2015-02-26T18:08:14+01:00 |
| cnorm:telephone.0 | STRING (6) | 123123 |
| jcr:mixinTypes | NAME (13,17) | [0] phpcr:managed |
| | | [1] mix:referenceable |
| i18n:de-resourceLocator | STRING (15) | /url/to/content |
| jcr:primaryType | NAME (15) | nt:unstructured |
| i18n:de-structureType | STRING (7) | contact |
| ci18n:de-name.0 | STRING (20) | Danièl le Français |
| i18n:de-creator | LONG (1) | 1 |
| phpcr:class | STRING (46) | DTL\Bundle\ContentBundle\Document\PageDocument |
| i18n:ennullfields | STRING (9) | [0] published |
| i18n:de-workflowStage | LONG (1) | 1 |
| i18n:en-resourceLocator | STRING (15) | /url/to/content |
| i18n:de-title | STRING (17) | Ceci est une test |
| i18n:en-created | DATE (29) | 2015-02-26T18:08:14+01:00 |
| ci18n:en-name.0 | STRING (12) | Daniel Leech |
| i18n:de-changed | DATE (29) | 2015-02-26T18:08:14+01:00 |
+----------------------------+--------------+------------------------------------------------+
to
PHPCRSH > ls
/cmf/sulu_io/contents/ceci-est-une-test [nt:unstructured] > nt:base
+----------------------------+--------------+------------------------------------------------+
| ci18n:de-name.0 | STRING (20) | Danièl le Français |
| ci18n:en-name.0 | STRING (12) | Daniel Leech |
| cnorm:email.0 | STRING (20) | daniel@dantleech.com |
| cnorm:telephone.0 | STRING (6) | 123123 |
| i18n:de-changed | DATE (29) | 2015-02-26T18:08:14+01:00 |
| i18n:de-changer | LONG (1) | 1 |
| i18n:de-created | DATE (29) | 2015-02-26T18:08:14+01:00 |
| i18n:de-creator | LONG (1) | 1 |
| i18n:de-navigationContexts | STRING (0) | |
| i18n:de-resourceLocator | STRING (15) | /url/to/content |
| i18n:de-structureType | STRING (7) | contact |
| i18n:de-title | STRING (17) | Ceci est une test |
| i18n:de-workflowStage | LONG (1) | 1 |
| i18n:denullfields | STRING (9) | [0] published |
| i18n:en-changed | DATE (29) | 2015-02-26T18:08:14+01:00 |
| i18n:en-changer | LONG (1) | 1 |
| i18n:en-created | DATE (29) | 2015-02-26T18:08:14+01:00 |
| i18n:en-creator | LONG (1) | 1 |
| i18n:en-navigationContexts | STRING (0) | |
| i18n:en-resourceLocator | STRING (15) | /url/to/content |
| i18n:en-structureType | STRING (7) | contact |
| i18n:en-title | STRING (14) | This is a test |
| i18n:en-workflowStage | LONG (1) | 1 |
| i18n:ennullfields | STRING (9) | [0] published |
| jcr:mixinTypes | NAME (13,17) | [0] phpcr:managed |
| | | [1] mix:referenceable |
| jcr:primaryType | NAME (15) | nt:unstructured |
| jcr:uuid | STRING (36) | 70ea97fa-a60f-47b7-b291-1b6ec1a7b9d4 |
| phpcr:class | STRING (46) | DTL\Bundle\ContentBundle\Document\PageDocument |
| phpcr:classparents | STRING (42) | [0] DTL\Bundle\ContentBundle\Document\Document |
+----------------------------+--------------+------------------------------------------------+
Metadata
Metadata
Assignees
Labels
No labels