Skip to content

The open alternative to Salesforce, designed for AI.

feature: add all the sortable fields for people

Sammy Teilletbb8f61212bda
diff --git a/front/src/pages/people/people-table.tsx b/front/src/pages/people/people-table.tsx
index b2264ed452a..1a3eaad5940 100644
--- a/front/src/pages/people/people-table.tsx
+++ b/front/src/pages/people/people-table.tsx
@@ -20,18 +20,20 @@ import PipeChip from '../../components/chips/PipeChip';
import { SortType } from '../../components/table/table-header/SortAndFilterBar';
export const sortsAvailable = [
- {
- id: 'created_at',
- label: 'Created at',
- order: 'asc',
- icon: faCalendar,
- },
{
id: 'email',
label: 'Email',
order: 'asc',
icon: faEnvelope,
},
+ { id: 'phone', label: 'Phone', order: 'asc', icon: faPhone },
+ {
+ id: 'created_at',
+ label: 'Created at',
+ order: 'asc',
+ icon: faCalendar,
+ },
+ { id: 'city', label: 'City', order: 'asc', icon: faMapPin },
] satisfies Array<SortType<keyof GraphqlPerson>>;
const columnHelper = createColumnHelper<Person>();