Example of Sorting API in React Gantt Component

/
/
SortingAPI

The sorting feature enables you to order data in a particular direction. It can be enabled by setting allowSorting to true.

More Details...

1
Planning and Permits
4/2/20254/10/20257 days100
2
Site Evaluation
4/2/20254/3/20252 days100
3
Obtain Permits
4/4/20254/8/20253 days100
4
Finalize Planning
4/9/20254/10/20252 days100
5
Site Preparation
4/10/20254/30/202514 days100
6
Site Clearing
4/10/20254/10/20250 days100
7
Grading and Excavation
4/11/20254/15/20253 days100
8
Foundation Work
4/16/20254/21/20254 days100
9
Foundation and Basement
4/22/20254/30/20257 days100
10
Pour Foundation
4/22/20254/23/20252 days100
11
Cure Foundation
4/24/20254/25/20252 days100
12
Basement Walls
4/28/20254/30/20253 days100
13
Framing
5/1/20255/8/20256 days100
14
Frame Floors
5/1/20255/2/20252 days100
15
Frame Walls
5/5/20255/6/20252 days100
16
Install Trusses
5/7/20255/8/20252 days100
17
Roofing
5/9/20255/13/20253 days100
18
Mechanical, Electrical, Plumbing
5/14/20255/26/20259 days50
19
HVAC Installation
5/14/20255/16/20253 days100
20
Plumbing Installation
5/19/20255/21/20253 days50
21
Electrical Installation
5/22/20255/26/20253 days0
22
Interior Finishing
5/27/20256/20/202519 days0
23
Insulation and Drywall
5/27/20256/2/20255 days0
24
Interior Painting
6/3/20256/6/20254 days0
25
Flooring Installation
6/9/20256/12/20254 days0
26
Cabinet and Fixture Setup
6/13/20256/17/20253 days0
27
Final Fixture Installation
6/18/20256/20/20253 days0
28
Exterior Finishing
6/23/20256/26/20254 days0
29
Landscaping
6/27/20257/3/20255 days0
30
Final Inspection
7/4/20257/8/20253 days0
31
Correction of Issues
7/9/20257/11/20253 days0
32
Final Walkthrough
7/14/20257/15/20252 days0
33
Handover Preparation
7/16/20257/18/20253 days0
34
Client Handover
7/21/20257/22/20252 days0
35
Warranty Period Begins
7/23/20257/24/20252 days0
36
Routine Maintenance Visits
7/25/20258/7/202510 days0
37
First Year Warranty Review
8/8/20258/14/20255 days0
38
Final Project Documentation
8/15/20258/19/20253 days0
39
Celebrate Project Completion
8/20/20258/22/20253 days0
40
Begin Next Project Planning
8/25/20258/28/20254 days0
Planning and Permits
Site Evaluation
Obtain Permits
Finalize Planning
Site Preparation
Site Clearing
Grading and Excavation
Foundation Work
Foundation and Basement
Pour Foundation
Cure Foundation
Basement Walls
Framing
Frame Floors
Frame Walls
Install Trusses
Roofing
Mechanical, Electrical, Plumbing
HVAC Installation
Plumbing Installation
Electrical Installation
Interior Finishing
Insulation and Drywall
Interior Painting
Flooring Installation
Cabinet and Fixture Setup
Final Fixture Installation
Exterior Finishing
Landscaping
Final Inspection
Correction of Issues
Final Walkthrough
Handover Preparation
Client Handover
Warranty Period Begins
Routine Maintenance Visits
First Year Warranty Review
Final Project Documentation
Celebrate Project Completion
Begin Next Project Planning
Properties
Column
Direction
Description

The sorting feature enables you to order data in a particular direction. It can be enabled by setting the allowSelection to true.

To sort a Gantt column, click the column header. The icons (ascending) and (descending) specify the sort direction of a column.

By default, the multi-sorting feature is enabled in Gantt. To sort multiple columns, hold the CTRL key, and then click the column header. To clear sort for a column, hold the SHIFT key, and then click the column header.

In this demo, select the column and direction from the properties panel, and then click the Sort button. Use the Clear button to remove sort for the sorted column.

Gantt component features are segregated into individual feature-wise modules. To use a selection, inject the Selection module using the Gantt.Inject(Selection) method.To use sort, inject the Sort module using the Gantt.Inject(Sort) method.To use markers, inject the DayMarkers module using the Gantt.Inject(DayMarkers) method.


More information on the Essential® React Gantt Chart can be found in this documentation section.