Added fix for non-ordered arrays with strings as values