a nit: put parenthesis around sortByKey