home: use lowercase path when comparing string to sort

master
EmaMaker 2021-09-20 22:00:43 +02:00
parent 95b46b0d85
commit efc9603f8f
1 changed files with 2 additions and 2 deletions

View File

@ -79,7 +79,7 @@ class _MyHomePageState extends State<MyHomePage> {
widget.storage.openNote(context, "");
},
tooltip: 'Take a new note',
child: Icon(Icons.add),
child: Icon(Icons.edit),
),
),
onWillPop: () async {
@ -94,7 +94,7 @@ class _MyHomePageState extends State<MyHomePage> {
void sortFiles() {
if (_sortBy == "Name") {
_allFilesNames.sort((a, b) {
return a.path.compareTo(b.path);
return a.path.toLowerCase().compareTo(b.path.toLowerCase());
});
} else if (_sortBy == "Last Modified") {