Here's my right-click context menu:
I would like to know if I could just arrange them, with all the red line ones altogether with the others to be separated.
Here's my right-click context menu:
I would like to know if I could just arrange them, with all the red line ones altogether with the others to be separated.
Yes, you can sort them by manipulating the registry keys. Keep in mind that some keys can't be renamed (cmd, Powershell, WSL etc.).
Computer\HKEY_CLASSES_ROOT\Directory\Background\shell.01-, 02- and so on in front of every key (folder icon).Before and after image: 
"Open with Code" and "Open PowerShell window here" are swapped
If you need to edit more context menus, then you can find more information here.