Chart of Accounts wrong Order

Hi,
I have created my Chart of Account and from the JSON i can see the order is correct but when added to ERPNEXT Directory and when creating a new company selecting Angola Chart of Accounts it is shown as you can see on the attached!!! Where is the order not being done or what is causing the number 8 to be between the others and not to the end?

While I cannot speak directly to this issue, I have seen lots of other strange “sorting” behavior in ERPNext. By default it seems to use the last modified date as they default sort. Did you happen to create 8 before creating 6 and 7. Or did you modify 8 after creating 6 and 7 giving it a newer modified date?

This is probably a candidate for a git issue.

@James_Robertson thanks for the reply.
Actually i created the JSON file and on it the order is correct.

{
“country_code”: “ao”,
“name”: “Angola - Plano de Contas”,
“tree”: {
“1 - Imobilizado”: {

        "root_type": "Asset" 
    },  
    "2 - Existencias": { 


        "root_type": "Asset" 
    },  
    "3 - Terceiros": { 

        "root_type": "Asset" 
    },  
    "4 - Meios Monetarios": { 

        "root_type": "Asset" 
    },  
    "5 - Capital e Reservas": { 

        "root_type": "Asset" 
    },  
    "6 - Proveitos Por Natureza": { 

        "root_type": "Income" 
    },  
    "7 - Custos Por Natureza": { 

        "root_type": "Expense" 
    },  
    "8 - Resultados": { 

        "root_type": "Asset" 
    } 
} 

}

when imported by the system it creates the result i have informed …

Ok still sounds like a defect to me. Please open a git issue in frappe/erpnext repository.

Done. Thanks

Hello @Helio_Jesus
If you opened issue in this, please provide me the link.
I am also facing sorting problem with chart of account with version 11 and I need to know how to be resolved.

Regards
Bilal

Hi @bghayad
I have not yet fixed or moved to V11 but on a test I have seen this same issue… My fix was for v10.
Please follow this link
Trial Balance Order not correct #9209
https://github.com/frappe/erpnext/issues/9209

Duplicate topic: Chart of Account in version 11 is major barrier to upgrade for it