Allow alphabetical sorting and generate closures resilient to special characters in property names