mirror of
https://github.com/chuot/rdio-scanner.git
synced 2026-08-13 16:33:01 -06:00
Ensure that systems are sorted by system number
This commit is contained in:
parent
7c2ee69151
commit
1fb4be6755
|
|
@ -428,7 +428,11 @@ export class AppRadioService implements OnDestroy {
|
||||||
.subscribe());
|
.subscribe());
|
||||||
|
|
||||||
this._subscriptions.systems.push(RadioSystems
|
this._subscriptions.systems.push(RadioSystems
|
||||||
.find()
|
.find({}, {
|
||||||
|
sort: {
|
||||||
|
system: 1,
|
||||||
|
},
|
||||||
|
})
|
||||||
.pipe(debounceTime(100))
|
.pipe(debounceTime(100))
|
||||||
.subscribe((systems: RadioSystem[]) => {
|
.subscribe((systems: RadioSystem[]) => {
|
||||||
this._systems.splice(0, this._systems.length, ...systems);
|
this._systems.splice(0, this._systems.length, ...systems);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue