diff --git a/lib/ArtworkSort.php b/lib/ArtworkSort.php new file mode 100644 index 00000000..57374b8b --- /dev/null +++ b/lib/ArtworkSort.php @@ -0,0 +1,6 @@ +value){ $orderBy = 'a.Name'; } - elseif($sort == SORT_COVER_ARTWORK_COMPLETED_NEWEST){ + elseif($sort == ArtworkSort::CompletedNewest->value){ $orderBy = 'art.CompletedYear desc'; } diff --git a/www/artworks/index.php b/www/artworks/index.php index 465a54c1..ac99256c 100644 --- a/www/artworks/index.php +++ b/www/artworks/index.php @@ -142,9 +142,9 @@ catch(Exceptions\PageOutOfBoundsException){ Sort