Sort folders A to Z instead of Z to A

This commit is contained in:
johnnyq
2022-04-27 22:32:53 -04:00
parent 6310ef5aae
commit eee7c0b204
3 changed files with 3 additions and 3 deletions

View File

@@ -73,7 +73,7 @@
<select class="form-control" name="folder">
<option value="0">/</option>
<?php
$sql_folders = mysqli_query($mysqli,"SELECT * FROM folders WHERE folder_client_id = $client_id ORDER BY folder_name DESC");
$sql_folders = mysqli_query($mysqli,"SELECT * FROM folders WHERE folder_client_id = $client_id ORDER BY folder_name ASC");
while($row = mysqli_fetch_array($sql_folders)){
$folder_id = $row['folder_id'];
$folder_name = $row['folder_name'];