Change from cmp= to key= for sorted calls