www/includes/db_inventory_equipments.php

changeset 37
9362eb9e9e5b
parent 27
d702a41a7021
child 77
a9f8de2d7b2b
--- a/www/includes/db_inventory_equipments.php	Sat Aug 25 11:40:31 2018 +0200
+++ b/www/includes/db_inventory_equipments.php	Sat Aug 25 13:07:13 2018 +0200
@@ -9,7 +9,7 @@
 }
 
 // get data and store in a json array
-$query = "SELECT * FROM inventory_equipments";
+$query = "SELECT * FROM inventory_equipments ORDER BY name";
 if (isset($_GET['insert'])) {
 	// INSERT COMMAND
 	$sql  = "INSERT INTO `inventory_equipments` SET name='" . mysqli_real_escape_string($connect, $_GET['name']);

mercurial