Skip to content

Commit

Permalink
fix(dictionary): write dictionary in deterministic order
Browse files Browse the repository at this point in the history
  • Loading branch information
YodaEmbedding committed Aug 20, 2024
1 parent cf4684c commit 3bd56d1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/ltex-utils/table_utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ function M.merge_lists_unique(list1, list2, changes)
---@type string[]
local merged_list = vim.tbl_keys(unique_elements)

table.sort(merged_list)

return merged_list
end

Expand Down

0 comments on commit 3bd56d1

Please sign in to comment.