Is there a way to get the sort function to treat the key (which is a string) as a number?
It’s currently sorting it to 1, 11, 12, 2, 3, 4, etc.
I’ve gone ahead and changed the Monday column to text instead of number and changed them all to 01, 02, etc. But is there a cleaner option within Make that doesn’t involve iterating through the whole array and adding everything to a new array (could be expensive operations wise)?
With the available functions available with Make, the only way I think to sort an array of number in a string format is by iterating them and parse them as a number to sort them. As you mention it’s not really efficient and could cost a lot of operations.
Another way would be to use a custom module including a Javascript function to do the job.