diff --git a/src/services/Time.service.ts b/src/services/Time.service.ts index 1555d49..1ab2508 100644 --- a/src/services/Time.service.ts +++ b/src/services/Time.service.ts @@ -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; } }