Thank you for writing your article! You saved me a good amount of time!
I wanted to send you a little cleanup for your patch on your "Sorted helper text" section. hs.fnutils has a nice function called sortByKey that does what you want. Your version could drop the extra helper and simplify to:
-- original: for keyName, funcName in pairs(keyFuncNameTable) do
for keyName, funcName in hs.fnutils.sortByKeys(keyFuncNameTable) do
I'm thinking of upstreaming this if I can find the right way to do it.
Thank you for writing your article! You saved me a good amount of time!
I wanted to send you a little cleanup for your patch on your "Sorted helper text" section.
hs.fnutilshas a nice function calledsortByKeythat does what you want. Your version could drop the extra helper and simplify to:I'm thinking of upstreaming this if I can find the right way to do it.