Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Commit

Permalink
Improve Time.service.ts::activeTimes
Browse files Browse the repository at this point in the history
  • Loading branch information
lukynmatuska committed Oct 1, 2021
1 parent dad4ebe commit 8e8c0d2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/services/Time.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,11 @@ export class TimeService {
output.push(key);
}
);
await output.sort(function (a, b) {
return await output.sort(function (a, b) {
var textA = a.name.toUpperCase();
var textB = b.name.toUpperCase();
return (textA < textB) ? -1 : (textA > textB) ? 1 : 0;
});
return output;
}

}

0 comments on commit 8e8c0d2

Please sign in to comment.