Skip to content

Commit

Permalink
chore(packages): Sort font features deterministically
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Feb 24, 2021
1 parent 6bd45a7 commit cb678eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/features.lua
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ end

local table2featurestring = function (tbl)
local t2 = {}
for k, v in pairs(tbl) do t2[#t2+1] = v.posneg..k..(v.value and "="..v.value or "") end
for k, v in pl.tablex.sort(tbl) do t2[#t2+1] = v.posneg..k..(v.value and "="..v.value or "") end
return table.concat(t2, ";")
end

Expand Down

0 comments on commit cb678eb

Please sign in to comment.