added alhphasort

This commit is contained in:
nova
2025-07-06 07:04:19 +02:00
parent 322a1495c0
commit 05ba7c82a0
2 changed files with 12 additions and 1 deletions

View File

@@ -40,3 +40,9 @@ int sort_natural(const void *file0, const void *file1){
}
}
}
int sort_alpha(const void *file0, const void *file1){
char *file_name0 = ((file*)file0)->file_name;
char *file_name1 = ((file*)file1)->file_name;
return strcmp(file_name0, file_name1);
}