Skip to content

[o-tree] Sort child nodes when o-tree is not pageable #1969

@patricia-martinez-imatia

Description

What is the current behavior?

Currently, when the o-tree component is not pageable, child nodes are not sorted in a predictable manner. This can lead to confusion in the hierarchical view, especially when users expect an alphabetical or predefined order.

Steps to reproduce

  <o-tree #treeview fxFlex root-title="CUSTOMERS" service="customers" entity="customer" keys="CUSTOMERID" ...>
      <o-tree-node service="customers" entity="customerAccount" quick-filter-columns="ACCOUNT" columns="ACCOUNTID;CUSTOMERID;ACCOUNT;STARTDATE"
        sort-column="STARTDATE:desc" visible-columns="ACCOUNT" keys="ACCOUNTID" parent-keys="CUSTOMERID">
......

The account nodes are not sorted

Affected versions:

  • ontimize-web-ngx: 15.x.x

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions