Browse Source

Sort benchmarks by name

pull/1250/head
Thomas 3 years ago
parent
commit
dfed427890
  1. 18
      apps/api/src/app/benchmark/benchmark.service.ts

18
apps/api/src/app/benchmark/benchmark.service.ts

@ -119,14 +119,16 @@ export class BenchmarkService {
const assetProfiles = const assetProfiles =
await this.symbolProfileService.getSymbolProfilesByIds(symbolProfileIds); await this.symbolProfileService.getSymbolProfilesByIds(symbolProfileIds);
return assetProfiles.map(({ dataSource, id, name, symbol }) => { return assetProfiles
return { .map(({ dataSource, id, name, symbol }) => {
dataSource, return {
id, dataSource,
name, id,
symbol name,
}; symbol
}); };
})
.sort((a, b) => a.name.localeCompare(b.name));
} }
public async getMarketDataBySymbol({ public async getMarketDataBySymbol({

Loading…
Cancel
Save