fix: remove unnecessary code

This commit is contained in:
RaktimaNXG
2024-04-02 12:25:02 +05:30
parent 40961936d0
commit 155a3eee14
+3 -2
View File
@@ -224,12 +224,13 @@ function Opensigndrive() {
const sortedBy = (appInfo, type, order) => {
if (type === orderName.Name) {
if (order === orderName.Ascending) {
appInfo.sort((a, b) => (a.Name > b.Name ? 1 : -1));
return appInfo.sort((a, b) =>
a.Name.toLowerCase() < b.Name.toLowerCase() ? -1 : 1
);
} else if (order === orderName.Descending) {
return appInfo.sort((a, b) => (a.Name > b.Name ? -1 : 1));
return appInfo.sort((a, b) =>
a.Name.toLowerCase() < b.Name.toLowerCase() ? 1 : -1
);
}
} else if (type === orderName.Date) {
if (order === orderName.Ascending) {