From 1fb4be67553dfa8e53136aeecbdb43f6a59a2c3e Mon Sep 17 00:00:00 2001 From: Chrystian Huot Date: Wed, 12 Jun 2019 13:06:18 -0400 Subject: [PATCH] Ensure that systems are sorted by system number --- client/imports/app/radio/radio.service.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/client/imports/app/radio/radio.service.ts b/client/imports/app/radio/radio.service.ts index c222433..beb4961 100644 --- a/client/imports/app/radio/radio.service.ts +++ b/client/imports/app/radio/radio.service.ts @@ -428,7 +428,11 @@ export class AppRadioService implements OnDestroy { .subscribe()); this._subscriptions.systems.push(RadioSystems - .find() + .find({}, { + sort: { + system: 1, + }, + }) .pipe(debounceTime(100)) .subscribe((systems: RadioSystem[]) => { this._systems.splice(0, this._systems.length, ...systems);