diff --git a/src/App.tsx b/src/App.tsx index de636ec..0b99a6d 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -99,7 +99,7 @@ function App() { [status, setStatus] = useState(''), [assignee, setAssignee] = useState(''), [tagFilter, setTagFilter] = useState(''), - [sort, setSort] = useState('newest'), + [sort, setSort] = useState('id'), [notifications, setNotifications] = useState([]), [bell, setBell] = useState(false), [theme, setTheme] = useState(localStorage.getItem('syncova-theme') || 'system'), @@ -236,9 +236,11 @@ function App() { .sort((a, b) => sort === 'oldest' ? a.updated_at.localeCompare(b.updated_at) - : sort === 'subject' - ? a.subject.localeCompare(b.subject) - : b.updated_at.localeCompare(a.updated_at), + : sort === 'newest' + ? b.updated_at.localeCompare(a.updated_at) + : sort === 'subject' + ? a.subject.localeCompare(b.subject) + : b.id.localeCompare(a.id), ) const title = queue ? boot.queues.find((q: Data) => q.id === queue)?.name @@ -652,9 +654,10 @@ function App() { ))}
diff --git a/src/CustomerContact.tsx b/src/CustomerContact.tsx index 529ad97..d4f586d 100644 --- a/src/CustomerContact.tsx +++ b/src/CustomerContact.tsx @@ -88,14 +88,9 @@ export function CustomerContact({ onChange={(event) => setEmail(event.target.value)} /> -
- - -
+