VCL-1114 - miscellaneous small web updates
utils.php:
-modified getImages: added ORDER BY to query to get image revision data so that revisions will be properly ordered when user is prompted to select a revision to reserve - out of order didn't show up if all revisions were owned by the same user so didn't notice this earlier
-modified getNATports: fixed header documentation that listed function name as getReservationNATports instead of getNATports
diff --git a/web/.ht-inc/utils.php b/web/.ht-inc/utils.php
index 71b9e3f..a44915e 100644
--- a/web/.ht-inc/utils.php
+++ b/web/.ht-inc/utils.php
@@ -1459,7 +1459,8 @@
. "WHERE i.userid = u.id AND ";
if(! $includedeleted)
$query .= "i.deleted = 0 AND ";
- $query .= "u.affiliationid = a.id";
+ $query .= "u.affiliationid = a.id "
+ . "ORDER BY i.imageid, i.revision";
$qh = doQuery($query, 101);
while($row = mysqli_fetch_assoc($qh)) {
$id = $row['imageid'];
@@ -9428,7 +9429,7 @@
////////////////////////////////////////////////////////////////////////////////
///
-/// \fn getReservationNATports($resid)
+/// \fn getNATports($resid)
///
/// \param $resid - id of a reservation
///