We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59910ac commit 2de571fCopy full SHA for 2de571f
1 file changed
src/Mdx.res
@@ -61,12 +61,12 @@ let sortSection = mdxPages =>
61
switch (a.order, b.order) {
62
| (Some(orderA), Some(orderB)) =>
63
switch Int.compare(orderA, orderB) {
64
- | 0 => String.compare(a.title, b.title)->Int.toFloat
65
- | result => result->Int.toFloat
+ | 0. => String.compare(a.title, b.title)
+ | result => result
66
}
67
| (Some(_), None) => -1.0
68
| (None, Some(_)) => 1.0
69
- | (None, None) => String.compare(a.title, b.title)->Int.toFloat
+ | (None, None) => String.compare(a.title, b.title)
70
71
)
72
0 commit comments