![]() |
|
|
|
|
Change By:
|
Andreas Weder
(17/Dec/13 7:17 PM)
|
|
Description:
|
We're currently sorting nodes
Sorting
in
the tree view alphabetically. That's also how it has been specified. However, I've been notified by Jan that this
trees
is
actually NOT how it should work
not straight forward
, since
the *manual sort order in the tree is very important*
nodes may be arranged manually
. In particular,
it can
a *manual sort order may
be used to rearrange items in navigation menus
and
* or, in general,
to
structure
order
the page tree in any way a customer
wants
may want
.
But sorting in trees still makes sense.
Here's how
I've
done some
research and
have
devised
a way to make this work. Here's
how this could work
in the Pages app (other apps work analogously, if they support a manual sort order at all)
:
*
for
For
every column except the "Page" or first
or node
column, items are sorted *within their hierarchy level only* (see below) and depending on the value/column type, i.e. alphabetically, by date and time or (e.g. in case of the "Status" column) in a pre-defined, more
semantical
semantic
sort order.
*
if
If
you sort by "Page" column
(or the column representing the actual node)
, we return to the manual sort order and do not show any sort arrow any more (there's no sort direction there anyway)
Sorting within a single level in the hierarchy is typically how sorting is done in trees.
h2. Details on sorting within a hierarchy level
Sorting in a hierarchy (or tree) sorts all elements on a particular level among themselves and does so on every level. If you e.g. have the following tree, sorted by (node) titles, thus alphabetically, and in ascending order:
{code}
A
|--A
| D
B
|--U
{code}
..., if you then reverse the sort direction, you'll get:
{code}
B
|--D
| A
A
|--U
{code}
The mechanics
shall
are the same as if you
do sorting
would sort
in a list: you simply click in the column header to sort by the attribute represented by that column. Clicking the same header again changes the sort direction.
|
|
|
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
----------------------------------------------------------------
For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <
[email protected]>
----------------------------------------------------------------