Introduction
Task sorting in Easy Gantt follows a structured order based on task properties. Understanding how tasks are prioritized and ordered on the timeline helps you better manage visibility, dependencies, and organization. This article explains the default sorting rules and how to customize the sorting behavior using your own attributes.
Target Audience
- User
- Administrator
Default Sorting Logic
By default, Easy Gantt automatically sorts tasks using the following rules, in this exact order:
- Milestone Association Priority
Tasks linked to milestones are shown before those that are not. - Start Date
Among tasks with the same milestone link, those with earlier start dates appear higher. - Due Date
If the start dates are the same, tasks are sorted by due date, from earliest to latest. - Task ID
If start and due dates are also the same, the task ID (creation order) determines the position. Lower ID = higher position.
Subtasks vs. Milestones
- Subtasks always appear immediately below their parent task in the Gantt chart, regardless of their milestone link.
- The parent-child relationship takes priority over milestone-based sorting.
- This means subtasks do not follow milestone sorting even if they are linked to different milestones.
Custom Sorting Using Your Own Attribute
If you need a different sorting order, you can use a custom field to define your own logic.
Step-by-Step Setup:
- Create a Custom Field
Go to administration and create a custom task field:- Name:
Order - Format: Integer
- Enable: “Used as a filter”
- Name:
- Enable the Field in Gantt View
Go to:
More → Administration → Filter settings → Easy Gantt & Resource management
Move theOrderfield from the left to the right side (visible columns). - Assign Values
Edit tasks and fill theOrderfield with numeric values based on your desired sort order (e.g. 1, 2, 3...). - Sort in Gantt View
In project-level Easy Gantt, click on the Order column.
Click again to switch between ascending and descending sort.
Summary
Easy Gantt sorts tasks automatically using a clear set of priority rules—milestones, start dates, due dates, and IDs. For more control, especially in custom workflows, you can introduce your own sorting criteria with a simple integer custom field.
