Task: Sort JavaScript Object by Property Name
Task: Sort JavaScript Object by Property Name: a task in Terminal-Lego-15k (Harbor dataset). Create a JavaScript solution that sorts a JavaScript object alphabetically by its property names (keys). The solution should take an unsorted object and return a new object with all properties arranged in…
The task
Create a JavaScript solution that sorts a JavaScript object alphabetically by its property names (keys). The solution should take an unsorted object and return a new object with all properties arranged in alphabetical order.
Part of PrimeIntellect/Terminal-Lego-15k.