summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2022-10-25 10:39:35 +0200
committerYorhel <git@yorhel.nl>2022-10-25 10:39:48 +0200
commitf0208f91f040664957653a8a2185ea205daf6243 (patch)
treee0b5cadf5bb350ad8361fe98e70668e959623dad
parent7d4cf26c22781ea03d71837533821b23b17a4e79 (diff)
VN::List: Add sorting by id
https://vndb.org/t950.1409 - and requested several times before.
-rw-r--r--lib/VNWeb/VN/List.pm8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/VNWeb/VN/List.pm b/lib/VNWeb/VN/List.pm
index 7c72f6d8..b4515099 100644
--- a/lib/VNWeb/VN/List.pm
+++ b/lib/VNWeb/VN/List.pm
@@ -71,7 +71,13 @@ sub TABLEOPTS {
sort_id => 6,
sort_sql => 'v.c_votecount ?o, v.sorttitle',
sort_num => 1,
- }
+ },
+ id => {
+ name => 'Date added',
+ sort_id => 10,
+ sort_sql => 'v.id',
+ sort_num => 1,
+ };
}
my $TABLEOPTS = TABLEOPTS 0;