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
Project initiation
4/2/20244/5/20244 days0
2
Identify site location
4/2/20244/2/20240 days30
3
Perform Soil test
4/2/20244/5/20244 days0
4
Soil test approval
4/5/20244/5/20240 days30
5
Project estimation
4/8/20244/15/20246 days15
6
Develop floor plan for estimation
4/8/20244/10/20243 days30
7
List materials
4/11/20244/15/20243 days0
8
Estimation approval
4/15/20244/15/20240 days0
9
Sign contract
4/16/20244/16/20241 day30
10
Project approval and kick off
4/16/20244/16/20240 days0
11
Site work
4/17/20244/22/20244 days15
12
Clear the building site
4/17/20244/18/20242 days30
13
Install temporary power service
4/19/20244/22/20242 days0
14
Foundation
4/23/20245/8/202412 days23
15
Excavate for foundations
4/23/20244/25/20243 days30
16
Dig footer
4/24/20244/25/20242 days0
17
Install plumbing grounds
4/26/20245/1/20244 days30
18
Pour a foundation and footer with concrete
5/2/20245/2/20241 day0
19
Cure basement walls
5/3/20245/8/20244 days30
20
Framing
5/9/20245/24/202412 days20
21
Add load-bearing structure
5/9/20245/13/20243 days30
22
Install floor joists
5/14/20245/16/20243 days0
23
Add ceiling joists
5/14/20245/16/20243 days30
24
Install subfloor panels
5/17/20245/21/20243 days0
25
Frame floor walls
5/22/20245/24/20243 days30
26
Frame floor decking
5/22/20245/24/20243 days30
27
Exterior finishing
5/27/20246/6/20249 days15
28
Cover outer walls and roof in OSB
5/27/20245/29/20243 days30
29
Add water resistive barrier
5/30/20246/3/20243 days0
30
Install roof shingles
6/4/20246/6/20243 days30
31
Install windows
6/4/20246/6/20243 days0
32
Utilities
5/27/20246/11/202412 days18
33
Install internal plumbing
5/27/20245/29/20243 days30
34
Install HVAC
5/30/20246/3/20243 days0
35
Electrical utilities
6/4/20246/6/20243 days30
36
Natural gas utilities
6/7/20246/11/20243 days0
37
Install bathroom fixtures
6/7/20246/11/20243 days30
38
Interior finsihing
6/12/20247/5/202418 days20
39
Install insulation
6/12/20246/14/20243 days30
40
Install drywall panels
6/17/20246/19/20243 days0
41
Spackle
6/20/20246/24/20243 days30
42
Apply primer
6/25/20246/27/20243 days0
43
Paint wall and ceilings
6/28/20247/2/20243 days30
44
Install modular kitchen
7/3/20247/5/20243 days30
45
Flooring
7/8/20247/10/20243 days15
46
Tile kitchen, bathroom and entry walls
7/8/20247/10/20243 days30
47
Tile floor
7/8/20247/10/20243 days0
48
Final Acceptance
7/11/20247/16/20244 days15
49
Final inspection
7/11/20247/12/20242 days30
50
Cleanup for occupancy
7/15/20247/16/20242 days0
51
Property handover
7/16/20247/16/20240 days0
Project initiation
Identify site location
Perform Soil test
Soil test approval
Project estimation
Develop floor plan for estimation
List materials
Estimation approval
Sign contract
Project approval and kick off
Site work
Clear the building site
Install temporary power service
Foundation
Excavate for foundations
Dig footer
Install plumbing grounds
Pour a foundation and footer with concrete
Cure basement walls
Framing
Add load-bearing structure
Install floor joists
Add ceiling joists
Install subfloor panels
Frame floor walls
Frame floor decking
Exterior finishing
Cover outer walls and roof in OSB
Add water resistive barrier
Install roof shingles
Install windows
Utilities
Install internal plumbing
Install HVAC
Electrical utilities
Natural gas utilities
Install bathroom fixtures
Interior finsihing
Install insulation
Install drywall panels
Spackle
Apply primer
Paint wall and ceilings
Install modular kitchen
Flooring
Tile kitchen, bathroom and entry walls
Tile floor
Final Acceptance
Final inspection
Cleanup for occupancy
Property handover
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.