diff --git a/routes/OtherCat.tsx b/routes/OtherCat.tsx index 8ae97e2..749b522 100644 --- a/routes/OtherCat.tsx +++ b/routes/OtherCat.tsx @@ -9,7 +9,7 @@ export default function OtherCat({theme, otherCategories, setOtherCategories, se const [newCat, setNewCat]:any = useState({id: 0, title: '', showEpisodes: false}); const [editPop, setEditPop] = useState(false); const [catSorted, setCatSorted] = useState(otherCategories); - //sort aplhabetically using a.title and b.title in a useEffect + useEffect(()=>{ setCatSorted(otherCategories.sort((a:any, b:any) => a.title.localeCompare(b.title))) },[otherCategories]) @@ -106,7 +106,7 @@ export default function OtherCat({theme, otherCategories, setOtherCategories, se Show season and episode tracker: - {(editPop)?DELETE:null} + {(editPop)?long press to delete:null}