keep the keys sorted. otherwise it is too jumpy from call to call when there are lots of keys displayed