Sort key maps
Support register diff