Sort output of keys()