Skip to content

Commit

Permalink
Merge pull request #2543 from codecrafters-io/update-course-ordering
Browse files Browse the repository at this point in the history
fix: reorder 'bittorrent' and 'kafka' in sortPositionForTrack method
  • Loading branch information
rohitpaulk authored Jan 17, 2025
2 parents ab33e8e + 7340323 commit 0e11451
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 @@ -146,7 +146,7 @@ export default class CourseModel extends Model {
}

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

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

0 comments on commit 0e11451

Please sign in to comment.