Skip to content

Commit

Permalink
fix: rewrite sort function
Browse files Browse the repository at this point in the history
fix: rewrite sort function
  • Loading branch information
Aslemammad committed Oct 17, 2022
2 parents d86aec7 + 70019a2 commit 04b2cda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/task.ts
Expand Up @@ -73,7 +73,7 @@ export default class Task extends EventTarget {
}
await this.bench.teardown(this, 'run');

samples.sort();
samples.sort((a,b)=> a - b);

{
const min = samples[0]!;
Expand Down

0 comments on commit 04b2cda

Please sign in to comment.