Skip to content
Snippets Groups Projects
Commit 7dddd561 authored by Richard Fernando Heise Ferreira's avatar Richard Fernando Heise Ferreira
Browse files

Issue #51: FIX Chrome string sort

parent a30c714f
No related branches found
No related tags found
No related merge requests found
...@@ -50,8 +50,8 @@ export default function ListForms() { ...@@ -50,8 +50,8 @@ export default function ListForms() {
}); });
setAuxForms(tmp); setAuxForms(tmp);
} else if (type === 1) { } else if (type === 1) {
const tmp = [...forms].sort(function(a, b) { const tmp = [...forms].sort((a, b) => {
return a.tittle > b.tittle ? 1 : -1; return a.title.toLowerCase().localeCompare(b.title.toLowerCase());
}); });
setAuxForms(tmp); setAuxForms(tmp);
} else if (type === 2) { } else if (type === 2) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment