Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
Signed-off-by: Christine Burns <christine.burns@bc.libraries.coop>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
}
resources$.pipe(
- tap((resource) => this.resources.push(resource)),
+ tap((resource) => {
+ this.resources.push(resource);
+ this.resources.sort((a,b) =>
+ (a.barcode() > b.barcode()) ? 1 : ((b.barcode() > a.barcode()) ? -1 : 0));
+ }),
takeLast(1),
switchMap(() => {
let range = {startTime: Moment(), endTime: Moment()};