sorted custom commands by keys to keep the ordering consistent all the time