implemented sort() and fixed keys() so it uses array_keys()