Skip to content

Commit 86f8a9d

Browse files
author
Aaron O'Mullan
committed
Remove useless (and bad) sort on progress
Fixes bad ordering of chapters on gitbook.io
1 parent 790dfd6 commit 86f8a9d

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lib/parse/progress.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ var calculProgress = function(navigation, current) {
1111
nav.path = path;
1212
return nav;
1313
})
14-
.sortBy(function(nav) {
15-
return parseFloat(nav.level);
16-
})
1714
.map(function(nav, i) {
1815
// Calcul percent
1916
nav.percent = (i * 100) / Math.max((n - 1), 1);

0 commit comments

Comments
 (0)