diff --git a/interface/src/project/DashboardData.tsx b/interface/src/project/DashboardData.tsx index ccd5e6209..7f59fb344 100644 --- a/interface/src/project/DashboardData.tsx +++ b/interface/src/project/DashboardData.tsx @@ -255,8 +255,8 @@ const DashboardData: FC = () => { iconDown: }, sortFns: { - NAME: (array) => array.sort((a, b) => a.id.localeCompare(b.id)), - TEMPERATURE: (array) => array.sort((a, b) => a.id.localeCompare(b.id)) + NAME: (array) => array.sort((a, b) => a.n.localeCompare(b.n)), + TEMPERATURE: (array) => array.sort((a, b) => a.t - b.t) } } );