Skip to content

Commit

Permalink
Merge pull request #1934 from codecrafters-io/update-order
Browse files Browse the repository at this point in the history
Update sortPositionForTrack in CourseModel
  • Loading branch information
rohitpaulk authored Jul 5, 2024
2 parents f803548 + 0f25833 commit e2b9fa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/course.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export default class CourseModel extends Model {
}

get sortPositionForTrack() {
const orderedSlugs = ['redis', 'http-server', 'shell', 'git', 'interpreter', 'dns-server', 'grep', 'bittorrent', 'sqlite'];
const orderedSlugs = ['redis', 'http-server', 'interpreter', 'shell', 'git', 'dns-server', 'grep', 'bittorrent', 'sqlite'];
const index = orderedSlugs.indexOf(this.slug);

return index === -1 ? 100 : index;
Expand Down

0 comments on commit e2b9fa2

Please sign in to comment.