Sorting on only leaf task


I want to display only leaf tasks in sorted order after clicking on a column heading without any hierarchy using javascript.
I tried all possible ways but it shows hierarchy sorting of leaf tasks. Is there a solution to this problem?


Hello Kavisha,
You need to use a custom sorting function:
Then you need to attach it to the grid column header by modifying the label parameter in the column configuration:

If you don’t want to see some tasks, you can hide them with the onBeforeTaskDisplay event handler:

Here is an example of how it can be implemented:

If you need something different, please, describe your question in more detail. You can also send me a picture of how you imagine it should work.