Skip to content

Commit 39d956a

Browse files
authored
Merge pull request #738 from wickathou/micro-feature/added-sort-to-organiser-project-table
Micro feature - added ability to sort projects listed on the organizer project table
2 parents 479b28f + eb12404 commit 39d956a

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

  • frontend/src/components/tables/ProjectsTable

frontend/src/components/tables/ProjectsTable/index.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,31 +50,42 @@ const ProjectsTable = ({ projects }) => {
5050
return index + 1
5151
},
5252
id: 'index',
53-
sortType: Sorters.Numeric,
53+
...Sorters.Numeric,
54+
},
55+
{
56+
Header: 'Status',
57+
accessor: 'status',
58+
...Sorters.Alphabetic,
59+
...Filters.ContainsSearch,
5460
},
5561
{
5662
Header: 'Team',
5763
accessor: 'teamCode',
64+
...Sorters.Alphanumeric,
5865
...Filters.ContainsSearch,
5966
},
6067
{
6168
Header: 'Name',
6269
accessor: 'name',
70+
...Sorters.Alphabetic,
6371
...Filters.ContainsSearch,
6472
},
6573
{
6674
Header: 'Punchline',
6775
accessor: 'punchline',
76+
...Sorters.Alphabetic,
6877
...Filters.ContainsSearch,
6978
},
7079
{
7180
Header: 'Demo',
7281
accessor: 'demo',
82+
...Sorters.Alphabetic,
7383
...Filters.ContainsSearch,
7484
},
7585
{
7686
Header: 'Source',
7787
accessor: 'source',
88+
...Sorters.Alphabetic,
7889
...Filters.ContainsSearch,
7990
},
8091
]

0 commit comments

Comments
 (0)