Party turn order determined by position

Tried scripting it myself but I can't understand how to implement this.

Essentially, the turn order of your party members would always be in perfect order of first to last, no matter what their AGI stat is. If you were to switch around the order of your party members, the turn order would still act from the first to the last party member.
Tried scripting it myself but I can't understand how to implement this.
Should be as easy as this
*untested
Ruby:
module BattleManager
  #--------------------------------------------------------------------------
  # * Create Action Order
  #--------------------------------------------------------------------------
  def self.make_action_orders
    @action_battlers = []
    party_battlers = []
    troop_battlers = []
    party_battlers += $game_party.members unless @surprise
    troop_battlers += $game_troop.members unless @preemptive
    troop_battlers.each {|battler| battler.make_speed }
    troop_battlers.sort! {|a,b| b.speed - a.speed }
    @action_battlers += party_battlers
    @action_battlers += troop_battlers
  end
end
Should be as easy as this
As far as I can tell this works perfectly fine. Thank you very much!
At first glance it seems to work... in a very specific way, that is.

What if ANY game developer would prefer to choose who goes first?

Well, this version would let you decide that before the game ever loads.
If you prefer the party to ALWAYS go first, set the PARTY_GOES_FIRST to true. Otherwise, set it to false.

Ruby:
module BattleManager
  PARTY_GOES_FIRST = true
  def self.find_party_battlers
    @surprise ? [] : $game_party.members
  end

  def self.find_enemy_battlers
    @preemptive ? [] : $game_troop.members
  end

  def self.make_action_orders
    if PARTY_GOES_FIRST
      battlers = find_party_battlers
      other_battlers = find_enemy_battlers
    else
      battlers = find_enemy_battlers
      other_battlers = find_party_battlers
    end
    other_battlers.each {|battler| battler.make_speed }
    other_battlers.sort! {|a,b| b.speed - a.speed }
    @action_battlers = battlers + other_battlers
  end
end

NOTE: Here I let you treat the other battlers as the ones that will be sorted by their actions' speed. If that's not what you want to implement, rename the lines that alter other_battlers as battlers. Now it will only sort the first group by their party or enemy indexes.
I apologise for the late post, but I eventually got around to using kyondies' version of the script as it suited a specific scenario I was creating for my project.

As such, I managed to figure out how to control the effect (Party vs Troop first?) using a switch! Figured I should post it here in case someone finds it useful.

Spoiler: SCRIPT
Ruby:
# credit to Roninator2 and kyonides for the help :>


module Switch
  def self.blink_or
    
    
    return $game_switches[9] # <- PUT THE SWITCH NUMBER HERE!!!!!
    # SWITCH ON = Party goes first
    # SWITCH OFF = Enemy goes first
    
    
    
    
  end
end

module BattleManager
 
  def self.find_party_battlers
    @surprise ? [] : $game_party.members
  end

  def self.find_enemy_battlers
    @preemptive ? [] : $game_troop.members
  end

  def self.make_action_orders
    if Switch.blink_or
      battlers = find_party_battlers
      other_battlers = find_enemy_battlers
    else
      battlers = find_enemy_battlers
      other_battlers = find_party_battlers
    end
    other_battlers.each {|battler| battler.make_speed }
    other_battlers.sort! {|a,b| b.speed - a.speed }
    @action_battlers = battlers + other_battlers
  end
end
using a switch!
If you are interested in having it change while you play then there are plenty of options that can be implemented.
Spoiler: Party Turn Order
Ruby:
# ╔═══════════════════════════════════════════════╦════════════════════╗
# ║ Title: Party Turn Order                       ║  Version: 1.00     ║
# ║ Author: Roninator2                            ║                    ║
# ╠═══════════════════════════════════════════════╬════════════════════╣
# ║ Function:                                     ║   Date Created     ║
# ║                                               ╠════════════════════╣
# ║   Change make action orders                   ║    11 Apr 2025     ║
# ╚═══════════════════════════════════════════════╩════════════════════╝
# ╔════════════════════════════════════════════════════════════════════╗
# ║ Requires: nil                                                      ║
# ║                                                                    ║
# ╚════════════════════════════════════════════════════════════════════╝
# ╔════════════════════════════════════════════════════════════════════╗
# ║ Brief Description:                                                 ║
# ║       Allow sorting of turns                                       ║
# ╚════════════════════════════════════════════════════════════════════╝
# ╔════════════════════════════════════════════════════════════════════╗
# ║ Instructions:                                                      ║
# ║   Follow instructions in module                                    ║
# ║                                                                    ║
# ╚════════════════════════════════════════════════════════════════════╝
# ╔════════════════════════════════════════════════════════════════════╗
# ║ Updates:                                                           ║
# ║ 1.00 - 11 Apr 2025 - Script finished                               ║
# ║                                                                    ║
# ╚════════════════════════════════════════════════════════════════════╝
# ╔════════════════════════════════════════════════════════════════════╗
# ║ Credits and Thanks:                                                ║
# ║   Roninator2                                                       ║
# ║                                                                    ║
# ╚════════════════════════════════════════════════════════════════════╝
# ╔════════════════════════════════════════════════════════════════════╗
# ║ Terms of use:                                                      ║
# ║  Follow the original Authors terms of use where applicable         ║
# ║    - When not made by me (Roninator2)                              ║
# ║  Free for all uses in RPG Maker except nudity                      ║
# ║  Anyone using this script in their project before these terms      ║
# ║  were changed are allowed to use this script even if it conflicts  ║
# ║  with these new terms. New terms effective 03 Apr 2024             ║
# ║  No part of this code can be used with AI programs or tools        ║
# ║  Credit must be given                                              ║
# ╚════════════════════════════════════════════════════════════════════╝

# ╔════════════════════════════════════════════════════════════════════╗
# ║                      End of editable region                        ║
# ╚════════════════════════════════════════════════════════════════════╝

module R2_TURN_PRIORITY
  TURN_VARIABLE = 9
  # Variable data = 0 -> Party goes first
  # Variable data = 1 -> Enemy goes first
  # Variable data = 2 -> default setting -> Random order
  # Variable data = any other number -> Party goes first
  PARTY_SPEED = 8
  # Switch on = party sorted by speed
  # switch off = party sorted by member list order
  TROOP_SPEED = 9
  # Switch on = troop sorted by speed
  # switch off = troop sorted by member list order
end

module BattleManager
  def self.make_action_orders
    @action_battlers = []
    party_battlers = []
    troop_battlers = []
    party_battlers += $game_party.members unless @surprise
    troop_battlers += $game_troop.members unless @preemptive
    if $game_switches[R2_TURN_PRIORITY::PARTY_SPEED] == true
      party_battlers.each {|battler| battler.make_speed }
      party_battlers.sort! {|a,b| b.speed - a.speed }
      party_battlers.compact!
    end
    if $game_switches[R2_TURN_PRIORITY::TROOP_SPEED] == true
      troop_battlers.each {|battler| battler.make_speed }
      troop_battlers.sort! {|a,b| b.speed - a.speed }
      troop_battlers.compact!
    end
    if $game_variables[R2_TURN_PRIORITY::TURN_VARIABLE] == 0
      @action_battlers += party_battlers + troop_battlers
    elsif $game_variables[R2_TURN_PRIORITY::TURN_VARIABLE] == 1
      @action_battlers += troop_battlers + party_battlers
    elsif $game_variables[R2_TURN_PRIORITY::TURN_VARIABLE] == 2
      @action_battlers += party_battlers + troop_battlers
      @action_battlers.each {|battler| battler.make_speed }
      @action_battlers.sort! {|a,b| b.speed - a.speed }
    else
      @action_battlers += party_battlers + troop_battlers
    end
  end
end

Original thread: https://forums.rpgmakerweb.com/threads/party-turn-order-determined-by-position.176614/