Crud table not updating to sql query

hii im trying to add a function to my crud table, the function is suppost to Rearranging the table and order the table by name in descending order i made a the first name field of the table a button and when you press the table needs to update and be organised by first name.
now when i press it nothing is Happening and i cant find my mistake hope someone can help me
this is my table on the top is the fields and there is the orderbyname function that im trying to activate

                <thead>

                    <tr>

                    <th>Photo</th>

                    <th>ID</th>

                    <form action="playercode.php" method="POST" class="d-inline">

                    <th> <button type="submit" name="orderbyname" class="btn btn-dark btn-sm">First Name</button> </th>

                    </form>

                    <th>Last Name</th>

                    <th><input type="submit" value="Date of birth"  name = "ageorder" id="ageorder"></th>

                    <th>E-mail</th>

                    <th>Phone</th>

                    <th>Action</th>

                    </tr>

                </thead>

                <tbody>

                    <?php

                        $query = "SELECT * FROM players";

                        $query_run = mysqli_query($conn,$query);

                        if(mysqli_num_rows($query_run) > 0)

                        {

                            foreach($query_run as $row)

                            {

                                ?>

                                <tr>

                                    <td><img src="<?= $row['Photo']; ?>"width='64px'></td>

                                    <td><?= $row['ID']; ?></td>

                                    <td><?= $row['Fname']; ?></td>

                                    <td><?= $row['Lname']; ?></td>

                                    <td><?= $row['Age']; ?></td>

                                    <td><?= $row['Email']; ?></td>

                                    <td><?= $row['Phone']; ?></td>

                                    <td>

                                        <a href="player-view.php?id=<?= $row['ID']; ?>" class="btn btn-info btn-sm">View</a>

                                        <a href="player-edit.php?id=<?= $row['ID']; ?>" class="btn btn-success btn-sm">Edit</a>

                                        <form action="playercode.php" method="POST" class="d-inline">

                                            <button type="submit" name="delete_player" value="<?=$row['ID'];?>" class="btn btn-danger btn-sm">Delete</button>

                                        </form>

                                    </td>

                                </tr>

                                <?php

                            }

                        }

                        else

                        {

                            echo "<h5> No Record Found </h5>";

                        }

                    ?>

                   

                </tbody>

            </table>

and this is the code where i run the sql query
if(isset($_POST[‘orderbyname’])){

$readQuery = "SELECT * FROM players ORDER BY Fname DESC";

$readRess = mysqli_query($conn,$readQuery);

if($readRess){

    header("Location: playertable.php");

    exit(0);

}

}
thanks in advance

This is just telling the browser to go at this page, but the query done is lost…

The approach is wrong.

You can:
or create a page playertable.php with a urlParam:
https://yourwebsite/playertable.php?order=1

and
in the main page instead of this:

                        $query = "SELECT * FROM players";

do:

$order = isset($_GET["order"]) && intval($_GET["order"]) == 1 ? "ORDER BY Fname DESC" : null;
$query = "SELECT * FROM players {$order}";

and the click button is an a tag:

 <th> <a href="https://yourwebsite/playertable.php?order=1" class="btn btn-dark btn-sm">First Name</a> </th>