maybe better variable name `regions_physical` to get hint, that `false, false` means physical and then `regions_logical` for `false, true` so it is easier to understand what is going on here and that it is sorted by first physical and then logical.