Although this works I don't recommend it. Js standard sort toStrings stuff and expectedResponseKeys are not numbers. It will work as long as someone does not add number greater than 9.