TreeGrid - bad indentations

In case if data parsed to treegrid are not sorted by levels, then indendations draws by treegrid is not good. Sample is there: https://snippet.dhtmlx.com/3yof7w8j
We have tree -> Africa -> Angola -> Sample Region -> Sample City
but Angola, Sample Region and Sample City have equals indendations, because in dataset are in reverse order.

If I provide correct order of dataset, then indentations are correct: https://snippet.dhtmlx.com/6btejgzt

Thank you for your report. The problem is confirmed. We’ll try to fix it in one of the future updates.

Your reported problem was fixed in the latest update of the dhx.Suite (7.3).
You can check your original snippet:
https://snippet.dhtmlx.com/3yof7w8j
Now it works properly.
Please, try to download the latest available dhx.Suite/Treegrid update to get that fix.