summaryrefslogtreecommitdiff
path: root/support/texlab/crates/completion/src/util/builder.rs
diff options
context:
space:
mode:
Diffstat (limited to 'support/texlab/crates/completion/src/util/builder.rs')
-rw-r--r--support/texlab/crates/completion/src/util/builder.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/support/texlab/crates/completion/src/util/builder.rs b/support/texlab/crates/completion/src/util/builder.rs
index 4ae0818e58..d219a5f2b1 100644
--- a/support/texlab/crates/completion/src/util/builder.rs
+++ b/support/texlab/crates/completion/src/util/builder.rs
@@ -32,6 +32,7 @@ impl<'a> CompletionBuilder<'a> {
b.preselect
.cmp(&a.preselect)
.then_with(|| b.score.cmp(&a.score))
+ .then_with(|| a.data.sort_index().cmp(&b.data.sort_index()))
.then_with(|| a.data.label().cmp(b.data.label()))
});