How to change the Grub2 boot order?

How can I change the boot order in grub2? Here is a step by step guide, In a terminal type, # grep menuentry /boot/grub2/grub.cfg menuentry ‘CentOS Linux (4.6.4-1.el7.elrepo.x86_64) 7 (Core) with debugging’ –class rhel fedora –class gnu-linux –class gnu –class os –unrestricted $menuentry_id_option ‘gnulinux-3.10.0-229.el7.x86_64-advanced-169f51f6-092c-43b8-bea9-bdc484dc66c6’ {
Continue reading…