Changing the order of grub menu items

Naturally, the scripts in /etc/grub.d are run in alphabetical order. So if you have a dual-boot system with Linux and Windows, 10_linux will be run before 30_os-prober; therefore your Linux entries will be before your Windows entries. If you want to put Windows on top (so that the default grub entry is Windows, no matter how many kernels you have installed), just rename 30_os-prober to something like 09_os-prober. Don’t forget to run sudo update-grub